Skip to content

Commit

Permalink
Add AndroidStartup tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
davehunt committed Feb 16, 2023
1 parent c052fc6 commit 1378bcf
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
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

0 comments on commit 1378bcf

Please sign in to comment.