oxc/tasks/benchmark/benches
Boshen 5c38a0fd69 feat(codegen)!: new code gen API (#3740)
This PR introduces two type alias to avoid the confusing const generic `pub struct Codegen<'a, const MINIFY: bool>`

* CodeGenerator - Code generator without whitespace removal.
* WhitespaceRemover - Code generator with whitespace removal.

Usage is changed to a builder pattern:

```rust
CodeGenerator::new()
  .enable_comment(...)
  .enable_sourcemap(...)
  .build(&program);
```
2024-06-18 15:50:12 +00:00
..
codegen_sourcemap.rs feat(codegen)!: new code gen API (#3740) 2024-06-18 15:50:12 +00:00
lexer.rs refactor(bench): reuse allocator in parser + lexer benchmarks (#3053) 2024-04-22 09:03:26 +08:00
linter.rs feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +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 feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
semantic.rs chore(benchmark): remove custom allocators because they are flaky (#2004) 2024-01-12 16:05:47 +08:00
sourcemap.rs feat(codegen)!: new code gen API (#3740) 2024-06-18 15:50:12 +00:00
transformer.rs feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00