Skip to content

Commit 6893e17

Browse files
Properly exclude steps
1 parent daac2bd commit 6893e17

File tree

10 files changed

+7
-15
lines changed

10 files changed

+7
-15
lines changed

experimental/javascript-wc-indexeddb/dist/src/components/todo-list/todo-list.component.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class TodoList extends HTMLElement {
130130
}
131131

132132
moveToNextPage() {
133-
console.log("number of children before removing:", this.listNode.children.length);
134133
for (let i = 0; i < MAX_ON_SCREEN_ITEMS; i++) {
135134
const child = this.listNode.firstChild;
136135
if (!child)

experimental/javascript-wc-indexeddb/dist/src/speedometer-utils/benchmark.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import { Params } from "./params.mjs";
88
* A single test step, with a common interface to interact with.
99
*/
1010
export class BenchmarkStep {
11-
constructor(name, run) {
11+
constructor(name, run, ignoreResult = false) {
1212
this.name = name;
1313
this.run = run;
14+
this.ignoreResult = ignoreResult;
1415
}
1516

1617
async runAndRecord(params, suite, test, callback) {
@@ -106,6 +107,7 @@ export class BenchmarkConnector {
106107
if (!suite)
107108
console.error(`Suite with the name of "${event.data.name}" not found!`);
108109
const { result } = await suite.runAndRecord(params, (test) => this.sendMessage({ type: "step-complete", status: "success", appId: this.appId, name: this.name, test }));
110+
console.log(result, result.tests);
109111
this.sendMessage({ type: "suite-complete", status: "success", appId: this.appId, result });
110112
this.disconnect();
111113
break;

experimental/javascript-wc-indexeddb/dist/src/storage/storage-factory.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import DexieDBManager from "./dexieDB-manager.js";
77
*/
88
export function createStorageManager() {
99
const params = new URLSearchParams(window.location.search);
10-
console.log("URLSearchParams:", params.toString());
1110
let storageType = params.get("storageType");
1211
if (storageType && storageType !== "vanilla" && storageType !== "dexie")
1312
throw new Error(`Invalid storage type specified in URL parameter: ${storageType}`);

experimental/javascript-wc-indexeddb/dist/src/workload-test.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const suites = {
3535
}
3636
if (j < 9) {
3737
const nextPageButton = document.querySelector("todo-app").shadowRoot.querySelector("todo-bottombar").shadowRoot.querySelector(".next-page-button");
38-
console.log("Clicking next page button", j);
3938
nextPageButton.click();
4039
}
4140
}

experimental/javascript-wc-indexeddb/src/components/todo-list/todo-list.component.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class TodoList extends HTMLElement {
130130
}
131131

132132
moveToNextPage() {
133-
console.log("number of children before removing:", this.listNode.children.length);
134133
for (let i = 0; i < MAX_ON_SCREEN_ITEMS; i++) {
135134
const child = this.listNode.firstChild;
136135
if (!child)

experimental/javascript-wc-indexeddb/src/speedometer-utils/benchmark.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import { Params } from "./params.mjs";
88
* A single test step, with a common interface to interact with.
99
*/
1010
export class BenchmarkStep {
11-
constructor(name, run) {
11+
constructor(name, run, ignoreResult = false) {
1212
this.name = name;
1313
this.run = run;
14+
this.ignoreResult = ignoreResult;
1415
}
1516

1617
async runAndRecord(params, suite, test, callback) {
@@ -106,6 +107,7 @@ export class BenchmarkConnector {
106107
if (!suite)
107108
console.error(`Suite with the name of "${event.data.name}" not found!`);
108109
const { result } = await suite.runAndRecord(params, (test) => this.sendMessage({ type: "step-complete", status: "success", appId: this.appId, name: this.name, test }));
110+
console.log(result, result.tests);
109111
this.sendMessage({ type: "suite-complete", status: "success", appId: this.appId, result });
110112
this.disconnect();
111113
break;

experimental/javascript-wc-indexeddb/src/storage/storage-factory.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import DexieDBManager from "./dexieDB-manager.js";
77
*/
88
export function createStorageManager() {
99
const params = new URLSearchParams(window.location.search);
10-
console.log("URLSearchParams:", params.toString());
1110
let storageType = params.get("storageType");
1211
if (storageType && storageType !== "vanilla" && storageType !== "dexie")
1312
throw new Error(`Invalid storage type specified in URL parameter: ${storageType}`);

experimental/javascript-wc-indexeddb/src/workload-test.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const suites = {
3535
}
3636
if (j < 9) {
3737
const nextPageButton = document.querySelector("todo-app").shadowRoot.querySelector("todo-bottombar").shadowRoot.querySelector(".next-page-button");
38-
console.log("Clicking next page button", j);
3938
nextPageButton.click();
4039
}
4140
}

resources/benchmark-runner.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import { SUITE_RUNNER_LOOKUP } from "./suite-runner.mjs";
66
const performance = globalThis.performance;
77

88
export class BenchmarkTestStep {
9-
constructor(testName, testFunction, ignoreResult = false) {
9+
constructor(testName, testFunction) {
1010
this.name = testName;
1111
this.run = testFunction;
12-
this.ignoreResult = ignoreResult;
1312
}
1413
}
1514

resources/suite-runner.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export class SuiteRunner {
1212

1313
constructor(frame, page, params, suite, client, measuredValues) {
1414
// FIXME: Create SuiteRunner-local measuredValues.
15-
console.log("Params", params);
1615
this.#suiteResults = measuredValues.tests[suite.name];
1716
if (!this.#suiteResults) {
1817
this.#suiteResults = { tests: {}, prepare: 0, total: 0 };
@@ -116,10 +115,6 @@ export class SuiteRunner {
116115
if (this.#suite === WarmupSuite)
117116
return;
118117

119-
// Skip recording results if the test step has ignoreResult flag set to true
120-
if (test.ignoreResult)
121-
return;
122-
123118
let total = syncTime + asyncTime;
124119
this.#suiteResults.tests[test.name] = {
125120
tests: { Sync: syncTime, Async: asyncTime },

0 commit comments

Comments
 (0)