ultra
ultra copied to clipboard
Deno.bench
Would be good to add benchmarks for speed critical code, transform mainly. Works very much the same way as the native test runner.
https://deno.land/[email protected]/tools/benchmarker
I'll get the ball rolling with an initial benchmark for transform!
It's worth noting that all local ESM is transformed on every request in dev
. This would not provide worthwhile results?
In all prod environments (Deno, Deno Deploy, and eventually Vercel), the transforms will pre-transformed to static files, or cached. Maybe it's best to test against that?
...which at the end of the day would be the std/http
server performance...
I guess it would be like our e2e tests, as we would like to test the whole stack?