Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 21, 2025
1 parent 8af20fe commit ccfcbfc
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/kairo/kairo_avoidable.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ function setup() {
return {
destroy,
run() {
$.flush_sync(() => {
$.flush(() => {
$.set(head, 1);
});
assert($.get(computed5) === 6);
for (let i = 0; i < 1000; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(head, i);
});
assert($.get(computed5) === 6);
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/kairo/kairo_broad.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ function setup() {
return {
destroy,
run() {
$.flush_sync(() => {
$.flush(() => {
$.set(head, 1);
});
counter = 0;
for (let i = 0; i < 50; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(head, i);
});
assert($.get(last) === i + 50);
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/kairo/kairo_deep.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ function setup() {
return {
destroy,
run() {
$.flush_sync(() => {
$.flush(() => {
$.set(head, 1);
});
counter = 0;
for (let i = 0; i < iter; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(head, i);
});
assert($.get(current) === len + i);
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/kairo/kairo_diamond.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ function setup() {
return {
destroy,
run() {
$.flush_sync(() => {
$.flush(() => {
$.set(head, 1);
});
assert($.get(sum) === 2 * width);
counter = 0;
for (let i = 0; i < 500; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(head, i);
});
assert($.get(sum) === (i + 1) * width);
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/kairo/kairo_mux.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ function setup() {
destroy,
run() {
for (let i = 0; i < 10; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(heads[i], i);
});
assert($.get(splited[i]) === i + 1);
}
for (let i = 0; i < 10; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(heads[i], i * 2);
});
assert($.get(splited[i]) === i * 2 + 1);
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/kairo/kairo_repeated.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ function setup() {
return {
destroy,
run() {
$.flush_sync(() => {
$.flush(() => {
$.set(head, 1);
});
assert($.get(current) === size);
counter = 0;
for (let i = 0; i < 100; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(head, i);
});
assert($.get(current) === i * size);
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/kairo/kairo_triangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ function setup() {
destroy,
run() {
const constant = count(width);
$.flush_sync(() => {
$.flush(() => {
$.set(head, 1);
});
assert($.get(sum) === constant);
counter = 0;
for (let i = 0; i < 100; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(head, i);
});
assert($.get(sum) === constant - width + i * width);
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/kairo/kairo_unstable.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ function setup() {
return {
destroy,
run() {
$.flush_sync(() => {
$.flush(() => {
$.set(head, 1);
});
assert($.get(current) === 40);
counter = 0;
for (let i = 0; i < 100; i++) {
$.flush_sync(() => {
$.flush(() => {
$.set(head, i);
});
}
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/benchmarks/reactivity/mol_bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ function setup() {
*/
run(i) {
res.length = 0;
$.flush_sync(() => {
$.flush(() => {
$.set(B, 1);
$.set(A, 1 + i * 2);
});
$.flush_sync(() => {
$.flush(() => {
$.set(A, 2 + i * 2);
$.set(B, 2);
});
Expand Down

0 comments on commit ccfcbfc

Please sign in to comment.