Skip to content

Commit 749af70

Browse files
committed
Remove redundant assignment of numberOfItemsToAdd in benchmark steps
1 parent 1e21b87 commit 749af70

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const suites = {
4242
new BenchmarkStep("CompletingAllItems", async () => {
4343
const numberOfItemsPerIteration = 10;
4444
const numberOfIterations = 10;
45-
window.numberOfItemsToAdd = numberOfItemsToAdd;
4645
for (let j = 0; j < numberOfIterations; j++) {
4746
const todoList = document.querySelector("todo-app").shadowRoot.querySelector("todo-list");
4847
const items = todoList.shadowRoot.querySelectorAll("todo-item");
@@ -66,7 +65,6 @@ const suites = {
6665
new BenchmarkStep("DeletingAllItems", async () => {
6766
const numberOfItemsPerIteration = 10;
6867
const numberOfIterations = 10;
69-
window.numberOfItemsToAdd = numberOfItemsToAdd;
7068
function iterationFinishedListener() {
7169
iterationFinishedListener.promiseResolve();
7270
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const suites = {
4242
new BenchmarkStep("CompletingAllItems", async () => {
4343
const numberOfItemsPerIteration = 10;
4444
const numberOfIterations = 10;
45-
window.numberOfItemsToAdd = numberOfItemsToAdd;
4645
for (let j = 0; j < numberOfIterations; j++) {
4746
const todoList = document.querySelector("todo-app").shadowRoot.querySelector("todo-list");
4847
const items = todoList.shadowRoot.querySelectorAll("todo-item");
@@ -66,7 +65,6 @@ const suites = {
6665
new BenchmarkStep("DeletingAllItems", async () => {
6766
const numberOfItemsPerIteration = 10;
6867
const numberOfIterations = 10;
69-
window.numberOfItemsToAdd = numberOfItemsToAdd;
7068
function iterationFinishedListener() {
7169
iterationFinishedListener.promiseResolve();
7270
}

0 commit comments

Comments
 (0)