File tree Expand file tree Collapse file tree 9 files changed +18
-18
lines changed
benchmarking/benchmarks/reactivity Expand file tree Collapse file tree 9 files changed +18
-18
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments