Skip to content

Commit ccfcbfc

Browse files
committed
fix
1 parent 8af20fe commit ccfcbfc

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

benchmarking/benchmarks/reactivity/kairo/kairo_avoidable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function setup() {
2020
return {
2121
destroy,
2222
run() {
23-
$.flush_sync(() => {
23+
$.flush(() => {
2424
$.set(head, 1);
2525
});
2626
assert($.get(computed5) === 6);
2727
for (let i = 0; i < 1000; i++) {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, i);
3030
});
3131
assert($.get(computed5) === 6);

benchmarking/benchmarks/reactivity/kairo/kairo_broad.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ function setup() {
2525
return {
2626
destroy,
2727
run() {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, 1);
3030
});
3131
counter = 0;
3232
for (let i = 0; i < 50; i++) {
33-
$.flush_sync(() => {
33+
$.flush(() => {
3434
$.set(head, i);
3535
});
3636
assert($.get(last) === i + 50);

benchmarking/benchmarks/reactivity/kairo/kairo_deep.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ function setup() {
2525
return {
2626
destroy,
2727
run() {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, 1);
3030
});
3131
counter = 0;
3232
for (let i = 0; i < iter; i++) {
33-
$.flush_sync(() => {
33+
$.flush(() => {
3434
$.set(head, i);
3535
});
3636
assert($.get(current) === len + i);

benchmarking/benchmarks/reactivity/kairo/kairo_diamond.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ function setup() {
2828
return {
2929
destroy,
3030
run() {
31-
$.flush_sync(() => {
31+
$.flush(() => {
3232
$.set(head, 1);
3333
});
3434
assert($.get(sum) === 2 * width);
3535
counter = 0;
3636
for (let i = 0; i < 500; i++) {
37-
$.flush_sync(() => {
37+
$.flush(() => {
3838
$.set(head, i);
3939
});
4040
assert($.get(sum) === (i + 1) * width);

benchmarking/benchmarks/reactivity/kairo/kairo_mux.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ function setup() {
2222
destroy,
2323
run() {
2424
for (let i = 0; i < 10; i++) {
25-
$.flush_sync(() => {
25+
$.flush(() => {
2626
$.set(heads[i], i);
2727
});
2828
assert($.get(splited[i]) === i + 1);
2929
}
3030
for (let i = 0; i < 10; i++) {
31-
$.flush_sync(() => {
31+
$.flush(() => {
3232
$.set(heads[i], i * 2);
3333
});
3434
assert($.get(splited[i]) === i * 2 + 1);

benchmarking/benchmarks/reactivity/kairo/kairo_repeated.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ function setup() {
2525
return {
2626
destroy,
2727
run() {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, 1);
3030
});
3131
assert($.get(current) === size);
3232
counter = 0;
3333
for (let i = 0; i < 100; i++) {
34-
$.flush_sync(() => {
34+
$.flush(() => {
3535
$.set(head, i);
3636
});
3737
assert($.get(current) === i * size);

benchmarking/benchmarks/reactivity/kairo/kairo_triangle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ function setup() {
3838
destroy,
3939
run() {
4040
const constant = count(width);
41-
$.flush_sync(() => {
41+
$.flush(() => {
4242
$.set(head, 1);
4343
});
4444
assert($.get(sum) === constant);
4545
counter = 0;
4646
for (let i = 0; i < 100; i++) {
47-
$.flush_sync(() => {
47+
$.flush(() => {
4848
$.set(head, i);
4949
});
5050
assert($.get(sum) === constant - width + i * width);

benchmarking/benchmarks/reactivity/kairo/kairo_unstable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ function setup() {
2525
return {
2626
destroy,
2727
run() {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, 1);
3030
});
3131
assert($.get(current) === 40);
3232
counter = 0;
3333
for (let i = 0; i < 100; i++) {
34-
$.flush_sync(() => {
34+
$.flush(() => {
3535
$.set(head, i);
3636
});
3737
}

benchmarking/benchmarks/reactivity/mol_bench.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ function setup() {
5151
*/
5252
run(i) {
5353
res.length = 0;
54-
$.flush_sync(() => {
54+
$.flush(() => {
5555
$.set(B, 1);
5656
$.set(A, 1 + i * 2);
5757
});
58-
$.flush_sync(() => {
58+
$.flush(() => {
5959
$.set(A, 2 + i * 2);
6060
$.set(B, 2);
6161
});

0 commit comments

Comments
 (0)