oxc/tasks/benchmark/Cargo.toml
overlookmotel 36c718ee82
feat(tasks): benchmarks for lexer (#2101)
This PR adds benchmarks for the lexer. I'm doing some work on optimizing
the lexer and I thought it'd be useful to see the effects of changes in
isolation, separate from the parser.

These benchmarks may not be ideal to keep long-term, but for now it'd be
useful.

In order to do so, it's necessary for `oxc_parser` crate to expose the
lexer, but have done that without adding it to the docs, and using an
alias `__lexer`.
2024-01-21 14:32:50 +00:00

65 lines
1.3 KiB
TOML

[package]
name = "oxc_benchmark"
version = "0.0.0"
publish = false
authors.workspace = true
description.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
repository.workspace = true
[lints]
workspace = true
[lib]
test = false
bench = false
doctest = false
[[bench]]
name = "parser"
harness = false
[[bench]]
name = "transformer"
harness = false
[[bench]]
name = "semantic"
harness = false
[[bench]]
name = "linter"
harness = false
# Broken
# [[bench]]
# name = "prettier"
# harness = false
[[bench]]
name = "minifier"
harness = false
[[bench]]
name = "lexer"
harness = false
[dependencies]
oxc_allocator = { workspace = true }
oxc_linter = { workspace = true }
oxc_minifier = { workspace = true }
oxc_parser = { workspace = true }
oxc_prettier = { workspace = true }
oxc_semantic = { workspace = true }
oxc_span = { workspace = true }
oxc_tasks_common = { workspace = true }
oxc_transformer = { workspace = true }
criterion = { workspace = true }
codspeed-criterion-compat = { workspace = true, optional = true }
[features]
codspeed = ["codspeed-criterion-compat"]