Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add AndroidStartup tests #488

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Armen Zambrano G. <[email protected]>",
"license": "MPL-2.0",
"scripts": {
"build": "webpack --mode production",
"build": "webpack --mode development",
"start": "webpack-dev-server --mode development",
"test": "jest",
"test:coverage": "jest --coverage",
Expand Down Expand Up @@ -67,4 +67,4 @@
"pre-push": "yarn test"
}
}
}
}
39 changes: 38 additions & 1 deletion src/awfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { BENCHMARKS as H3_BENCHMARKS, DEFAULT_SUITES as H3_SUITES } from './h3';
const TALOS_FRAMEWORK_ID = 1;
const JSBENCH_FRAMEWORK_ID = 11;
const BROWSERTIME_FRAMEWORK_ID = 13;
const MOZPERFTEST_FRAMEWORK_ID = 15;

const PALETTE = {
blue: '#446e9e',
Expand Down Expand Up @@ -451,6 +452,42 @@ Object.entries(SITES).forEach(([siteKey, siteLabel]) => {
});
});

const MOZPERF_APPS = {
fenix: {
name: 'fenix',
label: 'Fenix',
color: PALETTE.orange,
project: PROJECT,
},
focus: {
name: 'focus',
label: 'Focus',
color: PALETTE.red,
project: PROJECT,
},
};

const MOZPERF_TESTS = {
AndroidStartup: { label: 'Startup' },
};

Object.entries(MOZPERF_TESTS).forEach(([testKey, test]) => {
const bmKey = `mozperftest-${testKey}`;
BENCHMARKS[bmKey] = { compare: {}, label: test.label };
Object.entries(MOZPERF_APPS).forEach(([appKey, app]) => {
BENCHMARKS[bmKey].compare[appKey] = {
color: app.color,
label: app.label,
frameworkId: MOZPERFTEST_FRAMEWORK_ID,
suite: [testKey, app.name].filter(Boolean).join(':'),
application: 'firefox',
project: PROJECT,
option: 'opt',
};
MOBILE_CATEGORIES.benchmarks.suites.push(bmKey);
});
});

export const CONFIG = {
default: {
landingPath: '/win10/benchmarks/overview?numDays=60',
Expand Down Expand Up @@ -495,7 +532,7 @@ export const CONFIG = {
},
androidGalaxyA51: {
label: 'Android (Samsung Galaxy A51)',
platforms: ['android-hw-a51-11-0-aarch64-shippable-qr'],
platforms: ['android-hw-a51-11-0-aarch64-shippable', 'android-hw-a51-11-0-aarch64-shippable-qr'],
categories: MOBILE_CATEGORIES,
},
},
Expand Down