Skip to content

Commit

Permalink
test: add benchmarking
Browse files Browse the repository at this point in the history
Only really for playing around, but nice to have an idea
  • Loading branch information
JakeStanger committed Jun 15, 2023
1 parent 53afac7 commit 0ec37d8
Show file tree
Hide file tree
Showing 2 changed files with 499 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libcorn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ keywords = ["configuration", "language", "wasm", "pest", "peg"]

[features]
wasm = ["wasm-bindgen", "serde-wasm-bindgen", "console_error_panic_hook", "wee_alloc"]
bench = ["criterion"]

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -24,6 +25,9 @@ serde-wasm-bindgen = { version = "0.5.0", optional = true }
console_error_panic_hook = { version = "0.1.7", optional = true }
wee_alloc = { version = "0.4.5", optional = true }

# bench
criterion = { version = "0.5.1", features = ["html_reports"], optional = true }

[dev-dependencies]
paste = "1.0.6"
wasm-bindgen-test = { version = "0.3.29" }
Expand All @@ -32,3 +36,7 @@ serde_json = "1.0.75"
serde_yaml = "0.9.11"
serde_bytes = "0.11.9"
toml = "0.7.4"

[[bench]]
name = "serde"
harness = false
Loading

0 comments on commit 0ec37d8

Please sign in to comment.