mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-10-05 04:42:03 +00:00
add benchmarking for individual functions (#9)
* add benchmarking * update README to include benchmarking of individual functions * README: formatting * README: add link to Criterion's getting_started * shell.nix: add gnuplot Since Criterion.rs uses gnuplot to generate nice plots, add it to the shell. * Cargo.toml: fixed microfetch binary name * benchmark.rs: fix benchmark function's name * Update README.md --------- Co-authored-by: raf <raf@notashelf.dev>
This commit is contained in:
parent
907112f2d1
commit
f1e8ca8773
6 changed files with 628 additions and 0 deletions
15
Cargo.toml
15
Cargo.toml
|
@ -3,10 +3,25 @@ name = "microfetch"
|
|||
version = "0.3.5"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
name = "microfetch_lib"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "microfetch"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
nix = { version = "0.29", features = ["fs", "hostname", "feature"] }
|
||||
color-eyre = { version = "0.6", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.5"
|
||||
|
||||
[[bench]]
|
||||
name = "benchmark"
|
||||
harness = false
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 3
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue