File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ const swapRows = wrap('swap', () => {
72
72
async function bench() {
73
73
for (let i = 0 ; i < 30 ; i ++ ) {
74
74
rows .value = []
75
- await defer ()
76
75
await runLots ()
76
+ await defer ()
77
77
}
78
78
}
79
79
Original file line number Diff line number Diff line change 2
2
/* eslint-disable no-restricted-syntax */
3
3
/* eslint-disable no-restricted-globals */
4
4
5
+ import { nextTick } from '@vue/vapor'
6
+
5
7
declare namespace globalThis {
6
8
let doProfile : boolean
7
9
let reactivity : boolean
@@ -29,13 +31,13 @@ export function wrap(
29
31
document . body . classList . remove ( 'done' )
30
32
31
33
const { doProfile } = globalThis
32
- await defer ( )
34
+ await nextTick ( )
33
35
34
36
doProfile && console . profile ( id )
35
37
const start = performance . now ( )
36
38
fn ( ...args )
37
39
38
- await defer ( )
40
+ await nextTick ( )
39
41
let time : number
40
42
if ( globalThis . reactivity ) {
41
43
time = performance . measure (
You can’t perform that action at this time.
0 commit comments