Skip to content

Commit af7a569

Browse files
committed
check results
1 parent a6690c4 commit af7a569

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

webdriver-ts-results/src/components/ResultTable.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ const ResultTable = ({ type }: Props) => {
6161
I guess this view mode just makes no sense.
6262
</h3>
6363
)}
64+
{cpuDurationMode === CpuDurationMode.Render && (
65+
<h3>Warning: This is an experimental view that shows the difference between total duration and script duration. Don&apos;t rely on those values yet and don&apos;t report them until they are official.
66+
Report bugs in issue <a href="https://github.com/krausest/js-framework-benchmark/issues/1233">1233</a>.
67+
</h3>
68+
)}
6469
{displayMode === DisplayMode.BoxPlot ? (
6570
<>
6671
{benchmarks.length && (

webdriver-ts/src/parseTrace.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
import { cpuBenchmarkInfos } from "./benchmarksCommon.js";
22
import { BenchmarkOptions, config, initializeFrameworks } from "./common.js";
3+
import { stats } from "./stats.js";
34
import { computeResultsCPU, computeResultsJS, computeResultsPaint, parseCPUTrace, PlausibilityCheck } from "./timeline.js";
45

56
async function debugSingle() {
6-
// let values = [];
7-
// for (let i = 0; i < 15; i++) {
7+
let values: number[] = [];
8+
for (let i = 0; i < 15; i++) {
89
// const trace = `traces/anansi-v0.14.0-keyed_01_run1k_${i}.json`;
910
// const trace = `traces/alpine-v3.12.0-keyed_07_create10k_${i}.json`;
1011
// const trace = `traces/alpine-v3.12.0-keyed_07_create10k_0.jsontraces/1more-v0.1.18-keyed_01_run1k_0.json`;
1112
// const trace = `traces/alpine-v3.12.0-keyed_07_create10k_0.json`;
1213
// const trace = `traces/arrowjs-v1.0.0-alpha.9-keyed_07_create10k_0.json`;
1314
// const trace = `traces/better-react-v1.1.3-keyed_04_select1k_1.json`;
14-
const trace = `traces/miso-v1.4.0-keyed_01_run1k_0.json`;
15+
const trace = `traces/malina-v0.7.3-keyed_01_run1k_${i}.json`;
1516
// const trace = `traces/vanillajs-keyed_01_run1k_0.json`;
1617
console.log("analyzing trace", trace);
1718
const cpuTrace = await computeResultsCPU(trace);
1819
console.log(trace, cpuTrace);
19-
// values.push(cpuTrace.duration);
20+
values.push(cpuTrace.duration);
2021
let resultJS = await computeResultsJS(cpuTrace, config, trace);
2122
console.log("resultJS", resultJS);
2223
let resultPaint = await computeResultsPaint(cpuTrace, config, trace);
2324
console.log("resultPaint", resultPaint);
2425
// console.log(trace, await computeResultsJS(cpuTrace, config, trace, DurationMeasurementMode.LAST_PAINT))
25-
// }
26-
// console.log(values);
26+
}
27+
console.log(values);
28+
console.log(stats(values));
2729
}
2830

2931
// eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -58,6 +60,6 @@ async function debugAll() {
5860
plausibilityCheck.print();
5961
}
6062

61-
debugAll()
63+
debugSingle()
6264
.then(() => console.log("done"))
6365
.catch((error) => console.log(error));

0 commit comments

Comments
 (0)