(action: () => void)
| 367 | |
| 368 | it.skip('our parser is fast (this test is flaky, gc, opts.)', () => { |
| 369 | function trapDuration(action: () => void) { |
| 370 | const [startSec, startMSec] = process.hrtime(); |
| 371 | action(); |
| 372 | const [endSec, endMSec] = process.hrtime(); |
| 373 | |
| 374 | return (endSec - startSec) * 1000 + (endMSec - startMSec) / 1000000; |
| 375 | } |
| 376 | const charCodeByCharCodeDuration = trapDuration(() => { |
| 377 | let count = 0; |
| 378 | for (let i = 0; i < themeCoreLightIos.length; i++) { |