ultra icon indicating copy to clipboard operation
ultra copied to clipboard

Deno.bench

Open deckchairlabs opened this issue 2 years ago • 3 comments

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

deckchairlabs avatar Apr 22 '22 05:04 deckchairlabs

I'll get the ball rolling with an initial benchmark for transform!

deckchairlabs avatar Apr 22 '22 05:04 deckchairlabs

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...

mashaal avatar Apr 22 '22 05:04 mashaal

I guess it would be like our e2e tests, as we would like to test the whole stack?

deckchairlabs avatar Apr 22 '22 05:04 deckchairlabs