@@ -231,13 +231,12 @@ class Driver {
231
231
} else if ( ! dumpJSONResults )
232
232
console . log ( "Starting JetStream3" ) ;
233
233
234
- await updateUI ( ) ;
235
-
234
+ performance . mark ( "update-ui-start" ) ;
236
235
const start = performance . now ( ) ;
237
236
for ( const benchmark of this . benchmarks ) {
238
- benchmark . updateUIBeforeRun ( ) ;
239
-
237
+ await benchmark . updateUIBeforeRun ( ) ;
240
238
await updateUI ( ) ;
239
+ performance . measure ( "runner update-ui" , "update-ui-start" ) ;
241
240
242
241
try {
243
242
await benchmark . run ( ) ;
@@ -246,6 +245,7 @@ class Driver {
246
245
throw e ;
247
246
}
248
247
248
+ performance . mark ( "update-ui" ) ;
249
249
benchmark . updateUIAfterRun ( ) ;
250
250
251
251
if ( isInBrowser ) {
@@ -258,6 +258,7 @@ class Driver {
258
258
}
259
259
}
260
260
}
261
+ performance . measure ( "runner update-ui" , "update-ui-start" ) ;
261
262
262
263
const totalTime = performance . now ( ) - start ;
263
264
if ( measureTotalTimeAsSubtest ) {
@@ -774,6 +775,7 @@ class Benchmark {
774
775
}
775
776
addScript ( this . runnerCode ) ;
776
777
778
+ performance . mark ( this . name ) ;
777
779
this . startTime = performance . now ( ) ;
778
780
779
781
if ( RAMification )
@@ -794,6 +796,7 @@ class Benchmark {
794
796
const results = await promise ;
795
797
796
798
this . endTime = performance . now ( ) ;
799
+ performance . measure ( this . name , this . name ) ;
797
800
798
801
if ( RAMification ) {
799
802
const memoryFootprint = MemoryFootprint ( ) ;
0 commit comments