oxc/tasks/benchmark/benches
overlookmotel 6bc18e15e0
refactor(bench): reuse allocator in parser + lexer benchmarks (#3053)
Re-use allocator in parser + lexer benchmarks.

I believe this is the recommended usage when parsing a bunch of files -
to re-use one allocator rather than create a fresh one for each run, so
it makes sense to me that this is what the benchmark should measure.

Doesn't show much difference on CodSpeed because it only runs the
benchmark once, and it treats allocations as free anyway. But I imagine
the difference may show up a bit more in a standard criterion benchmark.
2024-04-22 09:03:26 +08:00
..
codegen_sourcemap.rs refactor(sourcemap): change sourcemap name to take a reference (#2779) 2024-03-23 21:40:05 +08:00
lexer.rs refactor(bench): reuse allocator in parser + lexer benchmarks (#3053) 2024-04-22 09:03:26 +08:00
linter.rs feat(linter): Add --jsdoc-plugin flag (#2935) 2024-04-12 10:39:12 +08:00
minifier.rs chore(benchmark): remove custom allocators because they are flaky (#2004) 2024-01-12 16:05:47 +08:00
parser.rs refactor(bench): reuse allocator in parser + lexer benchmarks (#3053) 2024-04-22 09:03:26 +08:00
parser_napi.rs feat(tasks): benchmark NodeJS parser (#2770) 2024-03-20 05:06:09 +00:00
prettier.rs refactor(ast): refactor Trivias API - have less noise around it (#2692) 2024-03-12 20:16:36 +08:00
semantic.rs chore(benchmark): remove custom allocators because they are flaky (#2004) 2024-01-12 16:05:47 +08:00
sourcemap.rs chore(benchmark): use a larger file for sourcemap benchmark 2024-04-11 15:11:26 +08:00
transformer.rs feat(transformer): add filename (#2941) 2024-04-11 18:43:51 +08:00