Skip to content

Commit

Permalink
update results for chrome 105
Browse files Browse the repository at this point in the history
  • Loading branch information
krausest committed Sep 3, 2022
1 parent 11058c0 commit 13b99ac
Show file tree
Hide file tree
Showing 10 changed files with 3,530 additions and 3,499 deletions.
2 changes: 1 addition & 1 deletion webdriver-ts-results/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const App = (): JSX.Element => {
return (
<div>
{disclaimer}
<p>The benchmark was run on a MaBook Air M1 (16 GB RAM, OSX 12.5), Chrome 104.0.5112.79 (arm64))
<p>The benchmark was run on a MaBook Air M1 (16 GB RAM, OSX 12.5), Chrome 105.0.5195.102 (arm64))
using the puppeteer benchmark driver with reduced tracing.
</p>
<SelectionBar/>
Expand Down
10 changes: 8 additions & 2 deletions webdriver-ts-results/src/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,19 @@ export class ResultTableData {
return result.mean;
}
}
const min = benchmarkResults.reduce((min, result) => result===null ? min : Math.min(min, selectFn(result)), Number.POSITIVE_INFINITY);
let min = Math.max(benchmarkResults.reduce((min, result) => result===null ? min : Math.min(min, selectFn(result)), Number.POSITIVE_INFINITY));
// if (benchmark.type === BenchmarkType.CPU) {
// min = Math.max(1000/60, min);
// }
return this.frameworks.map(f => {
const result = this.results(benchmark, f);
if (result === null) return null;

const value = selectFn(result);
const factor = value/min;
let factor = value/min;
// if (benchmark.type === BenchmarkType.CPU) {
// factor = Math.max(1, factor);
// }
const conficenceInterval = 1.959964 * (result.standardDeviation || 0) / Math.sqrt(result.values.length);
const conficenceIntervalStr = benchmark.type === BenchmarkType.MEM ? null : conficenceInterval.toFixed(1);
const formattedValue = formatEn.format(value);
Expand Down
6,444 changes: 3,222 additions & 3,222 deletions webdriver-ts-results/src/results.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webdriver-ts-results/table.html

Large diffs are not rendered by default.

528 changes: 276 additions & 252 deletions webdriver-ts/package-lock.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions webdriver-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,35 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@types/lodash": "4.14.182",
"@types/node": "18.6.3",
"@types/lodash": "4.14.184",
"@types/node": "18.7.14",
"@types/ramda": "^0.28.15",
"@types/selenium-webdriver": "4.1.2",
"@types/semver": "7.3.10",
"@types/selenium-webdriver": "4.1.3",
"@types/semver": "7.3.12",
"@types/underscore": "^1.11.4",
"@types/yargs": "17.0.10",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.32.0",
"dockerode": "^3.3.3",
"eslint": "^8.21.0",
"@types/yargs": "17.0.12",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"dockerode": "^3.3.4",
"eslint": "^8.23.0",
"rimraf": "^3.0.2",
"ts-node": "10.9.1",
"typescript": "4.7.4"
"typescript": "4.8.2"
},
"dependencies": {
"axios": "^0.27.2",
"chromedriver": "^103.0.0",
"chromedriver": "^105.0.0",
"cross-env": "7.0.3",
"dot": "1.1.3",
"jstat": "1.9.5",
"lighthouse": "9.6.5",
"lighthouse": "9.6.7",
"lodash": "4.17.21",
"marky": "^1.2.5",
"npm-check-updates": "16.0.5",
"playwright": "^1.24.2",
"puppeteer-core": "^15.5.0",
"npm-check-updates": "16.0.6",
"playwright": "^1.25.1",
"puppeteer-core": "^17.1.0",
"ramda": "^0.28.0",
"selenium-webdriver": "4.3.1",
"selenium-webdriver": "4.4.0",
"semver": "7.3.7",
"underscore": "^1.13.4",
"yargs": "17.5.1"
Expand Down
2 changes: 1 addition & 1 deletion webdriver-ts/results.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions webdriver-ts/src/benchmarksPuppeteer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export const benchUpdate5Memory = new (class extends MemBenchmarkPuppeteer {
}
async run(page: Page) {
await clickElement(page, "pierce/#run");
await checkElementExists(page, "pierce/tbody>tr:nth-of-type(1000)>td:nth-of-type(2)>a");
for (let i = 0; i < 5; i++) {
await clickElement(page, "pierce/#update");
await checkElementContainsText(page, "pierce/tbody>tr:nth-of-type(1)>td:nth-of-type(2)>a", " !!!".repeat(i));
Expand Down
2 changes: 1 addition & 1 deletion webdriver-ts/src/forkedBenchmarkRunnerPlaywright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async function runMemBenchmark(
});
}

await page.goto(`http://${benchmarkOptions.HOST}:${benchmarkOptions.port}/${framework.uri}/index.html`);
await page.goto(`http://${benchmarkOptions.HOST}:${benchmarkOptions.port}/${framework.uri}/index.html`, {waitUntil: "networkidle"});

// await (driver as any).sendDevToolsCommand('Network.enable');
// await (driver as any).sendDevToolsCommand('Network.emulateNetworkConditions', {
Expand Down
6 changes: 3 additions & 3 deletions webdriver-ts/src/forkedBenchmarkRunnerPuppeteer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async function runCPUBenchmark(framework: FrameworkData, benchmark: CPUBenchmark
// let m1 = await page.metrics();
await runBenchmark(page, benchmark, framework);

await wait(10);
await wait(40);
await page.tracing.stop();
// let m2 = await page.metrics();
if (benchmark.benchmarkInfo.throttleCPU) {
Expand Down Expand Up @@ -181,8 +181,8 @@ async function runMemBenchmark(
for (let i = 0; i < msg.args().length; ++i) console.log(`BROWSER: ${msg.args()[i]}`);
});
}

await page.goto(`http://${benchmarkOptions.HOST}:${benchmarkOptions.port}/${framework.uri}/index.html`);
await page.goto(`http://${benchmarkOptions.HOST}:${benchmarkOptions.port}/${framework.uri}/index.html`, {waitUntil: "networkidle0"});

// await (driver as any).sendDevToolsCommand('Network.enable');
// await (driver as any).sendDevToolsCommand('Network.emulateNetworkConditions', {
Expand Down

0 comments on commit 13b99ac

Please sign in to comment.