17 lines
354 B
JavaScript
17 lines
354 B
JavaScript
|
import { compilePaths } from "../router_v2.mjs"
|
||
|
import { printTime } from './utils.mjs'
|
||
|
import * as consts from './const.js'
|
||
|
|
||
|
let paths = consts.allManyRoutes.map(x => ({ path: x }))
|
||
|
|
||
|
let s1 = process.hrtime.bigint()
|
||
|
let s2 = process.hrtime.bigint()
|
||
|
|
||
|
compilePaths(paths)
|
||
|
|
||
|
let s3 = process.hrtime.bigint()
|
||
|
|
||
|
let time = s3 - s2 - (s2 - s1)
|
||
|
|
||
|
printTime(time)
|