Skip to content

Commit c190603

Browse files
author
Luis Pardo
committed
format and add coment
1 parent 344f8ae commit c190603

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

experimental/javascript-wc-indexeddb/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,23 @@ It utilizes custom elements and html templates to build reusable components.
88
In contrast to other workloads, this application uses an updated set of css rules and an optimized dom structure to ensure the application follows best practices in regards to accessibility.
99

1010
### Benchmark steps
11-
In contrast to other versions of the todoMVC workload, this one only shows 10 todo items at a time.
11+
12+
In contrast to other versions of the todoMVC workload, this one only shows 10 todo items at a time.
1213

1314
#### Add 100 items.
15+
1416
All the items are added to the DOM and to the database, it uses CSS to show only 10 of the items on screen.
1517

1618
The measured time stops when the last item has been added to the DOM, it doesn't measure the time spent to complete the database update.
1719

1820
#### Complete 100 items.
21+
1922
The benchmark runs a loop of 10 iterations. On each iteration 10 items are marked completed (in the DOM and in the database), and the "Next page" button is clicked. When moving to the next page the items in the "current page" are deleted from the DOM.
2023

2124
The measured time stops when the last item has been marked as completed, it doesn't measure the time spent to complete the database update.
2225

2326
#### Delete 100 items.
27+
2428
The benchmarks runs a loop of 10 iterations. On each iteration the 10 items in the current page are deleted (from the DOM and the database), and the "Previous page" button is clicked.
2529

2630
When moving to the previous page the previous 10 items are loaded from the database, this is included in the measured time.

resources/default-tests.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const DefaultSuites = freezeSuites([
5151
async (page) => {
5252
await page.getGlobalVariable("addPromise");
5353
},
54-
true
54+
/* ignoreResult =*/ true
5555
),
5656
new BenchmarkTestStep("CompletingAllItems", async (page) => {
5757
const numberOfItemsPerIteration = 10;
@@ -75,7 +75,7 @@ export const DefaultSuites = freezeSuites([
7575
async (page) => {
7676
await page.getGlobalVariable("completePromise");
7777
},
78-
true
78+
/* ignoreResult =*/ true
7979
),
8080
new BenchmarkTestStep("DeletingAllItems", async (page) => {
8181
const numberOfItemsPerIteration = 10;
@@ -107,7 +107,7 @@ export const DefaultSuites = freezeSuites([
107107
async (page) => {
108108
await page.getGlobalVariable("removePromise");
109109
},
110-
true
110+
/* ignoreResult =*/ true
111111
),
112112
],
113113
},
@@ -158,7 +158,7 @@ export const DefaultSuites = freezeSuites([
158158
async (page) => {
159159
await page.getGlobalVariable("addPromise");
160160
},
161-
true
161+
/* ignoreResult =*/ true
162162
),
163163
new BenchmarkTestStep("CompletingAllItems", async (page) => {
164164
const numberOfItemsPerIteration = 10;
@@ -182,7 +182,7 @@ export const DefaultSuites = freezeSuites([
182182
async (page) => {
183183
await page.getGlobalVariable("completePromise");
184184
},
185-
true
185+
/* ignoreResult =*/ true
186186
),
187187
new BenchmarkTestStep("DeletingAllItems", async (page) => {
188188
const numberOfItemsPerIteration = 10;
@@ -214,7 +214,7 @@ export const DefaultSuites = freezeSuites([
214214
async (page) => {
215215
await page.getGlobalVariable("removePromise");
216216
},
217-
true
217+
/* ignoreResult =*/ true
218218
),
219219
],
220220
},

0 commit comments

Comments
 (0)