oxc/crates
overlookmotel bfd0b0da17 ci(benchmark): make lexer benchmark more realistic (#8573)
The lexer benchmarks had a problem. The lexer alone cannot make sense of regexp literals, template literals, or JSX text elements - it needs the parser "driving" it.

So lexer was producing plenty of errors on some benchmarks. This is unrealistic - when driven by the parser, the lexer produces no errors. Generating diagnostics is relatively expensive, so this was skewing the benchmarks somewhat.

Solve this by cleaning up the input source text to replace these syntaxes with string literals prior to running the benchmarks.

Unfortunately lexer benchmarks don't exercise the code paths for these syntaxes, but there isn't much we can do about that. We can judge by the parser benchmarks, which are the more important ones anyway.
2025-01-18 01:47:07 +00:00
..
oxc fix(semantic)!: ensure program outlives semantic (#8455) 2025-01-16 10:04:25 +08:00
oxc_allocator perf(allocator): inline Box methods (#8572) 2025-01-18 01:23:57 +00:00
oxc_ast refactor(allocator): String type (#8568) 2025-01-18 01:23:54 +00:00
oxc_ast_macros feat(ast, span, syntax, regular_expression)!: remove ContentHash (#8512) 2025-01-15 15:01:14 +00:00
oxc_cfg release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_codegen fix(codegen): shorthand assignment target identifier consider mangled names (#8536) 2025-01-16 07:26:07 +00:00
oxc_data_structures release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_diagnostics refactor(linter): move DiagnosticsReporters to oxlint (#8454) 2025-01-16 16:11:22 +08:00
oxc_ecmascript refactor(minifier): merge try_compress_type_of_equal_string into try_minimize_binary (#8561) 2025-01-17 11:01:54 +00:00
oxc_estree release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_isolated_declarations release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_language_server chore(deps): update dependency rust to v1.84.0 (#8391) 2025-01-09 18:11:17 +00:00
oxc_linter fix(linter): enhance default_param_last rule to handle optional parameters (#8563) 2025-01-17 11:35:27 +00:00
oxc_macros chore(deps): update rust crates (#8452) 2025-01-15 13:29:46 +00:00
oxc_mangler perf(mangler): optimize base54 function (#8557) 2025-01-17 05:47:28 +00:00
oxc_minifier refactor(minifier): merge try_compress_type_of_equal_string into try_minimize_binary (#8561) 2025-01-17 11:01:54 +00:00
oxc_napi release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_parser ci(benchmark): make lexer benchmark more realistic (#8573) 2025-01-18 01:47:07 +00:00
oxc_prettier refactor(allocator): String type (#8568) 2025-01-18 01:23:54 +00:00
oxc_regular_expression refactor(ast, regular_expression): shorten ContentEq implementations (#8519) 2025-01-17 06:24:08 +00:00
oxc_semantic perf(semantic): use oxc_allocator::HashMap in ScopeTree (#8554) 2025-01-16 23:29:58 +00:00
oxc_span refactor(allocator): String type (#8568) 2025-01-18 01:23:54 +00:00
oxc_syntax feat(napi/parser): expose dynamic import expressions (#8540) 2025-01-16 22:25:22 +08:00
oxc_transformer refactor(allocator)!: remove Vec::into_string (#8571) 2025-01-18 01:23:56 +00:00
oxc_traverse refactor(traverse): remove unnecessary #[allow] (#8518) 2025-01-15 17:38:03 +00:00
oxc_wasm feat(napi/minify): implement napi (#8478) 2025-01-14 08:55:55 +00:00