2024-11-18 03:57:51 +00:00
|
|
|
import { FlaskaRouter } from "../flaska.mjs"
|
2024-11-02 12:44:54 +00:00
|
|
|
import { printTime } from './utils.mjs'
|
|
|
|
import * as consts from './const.js'
|
|
|
|
|
|
|
|
let paths = consts.allManyRoutes.map(x => ({ path: x }))
|
|
|
|
|
2024-11-18 03:57:51 +00:00
|
|
|
let router = new FlaskaRouter()
|
|
|
|
router.paths = paths
|
|
|
|
|
2024-11-02 12:44:54 +00:00
|
|
|
let s1 = process.hrtime.bigint()
|
|
|
|
let s2 = process.hrtime.bigint()
|
|
|
|
|
2024-11-18 03:57:51 +00:00
|
|
|
router.compile()
|
2024-11-02 12:44:54 +00:00
|
|
|
|
|
|
|
let s3 = process.hrtime.bigint()
|
|
|
|
|
|
|
|
let time = s3 - s2 - (s2 - s1)
|
|
|
|
|
|
|
|
printTime(time)
|