start using criterion in the test_gen crate

This commit is contained in:
Folkert 2022-07-05 17:29:26 +02:00
parent a9d296b21c
commit 2debf2629d
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
4 changed files with 10 additions and 57 deletions

60
Cargo.lock generated
View file

@ -524,7 +524,7 @@ version = "0.1.0"
dependencies = [
"bumpalo",
"const_format",
"criterion 0.3.5 (git+https://github.com/Anton-4/criterion.rs)",
"criterion",
"rlimit",
"roc_cli",
"roc_collections",
@ -916,32 +916,6 @@ dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "criterion"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1604dafd25fba2fe2d5895a9da139f8dc9b319a5fe5354ca137cbbce4e178d10"
dependencies = [
"atty",
"cast",
"clap 2.34.0",
"criterion-plot 0.4.4",
"csv",
"itertools 0.10.3",
"lazy_static",
"num-traits",
"oorandom",
"plotters 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rayon",
"regex",
"serde",
"serde_cbor",
"serde_derive",
"serde_json",
"tinytemplate",
"walkdir",
]
[[package]]
name = "criterion"
version = "0.3.5"
@ -950,13 +924,13 @@ dependencies = [
"atty",
"cast",
"clap 2.34.0",
"criterion-plot 0.4.3",
"criterion-plot",
"csv",
"itertools 0.10.3",
"lazy_static",
"num-traits",
"oorandom",
"plotters 0.3.1 (git+https://github.com/Anton-4/plotters)",
"plotters",
"rayon",
"regex",
"serde",
@ -976,16 +950,6 @@ dependencies = [
"itertools 0.9.0",
]
[[package]]
name = "criterion-plot"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d00996de9f2f7559f7f4dc286073197f83e92256a59ed395f9aac01fe717da57"
dependencies = [
"cast",
"itertools 0.10.3",
]
[[package]]
name = "crossbeam"
version = "0.8.1"
@ -2893,19 +2857,6 @@ version = "0.3.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae"
[[package]]
name = "plotters"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a3fd9ec30b9749ce28cd91f255d569591cdf937fe280c312143e3c4bad6f2a"
dependencies = [
"num-traits",
"plotters-backend",
"plotters-svg",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "plotters"
version = "0.3.1"
@ -3470,7 +3421,7 @@ dependencies = [
"clap 3.2.8",
"cli_utils",
"const_format",
"criterion 0.3.5 (git+https://github.com/Anton-4/criterion.rs)",
"criterion",
"errno",
"indoc",
"libc",
@ -3876,7 +3827,7 @@ name = "roc_parse"
version = "0.1.0"
dependencies = [
"bumpalo",
"criterion 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"criterion",
"encode_unicode",
"indoc",
"pretty_assertions",
@ -4736,6 +4687,7 @@ name = "test_gen"
version = "0.1.0"
dependencies = [
"bumpalo",
"criterion",
"either",
"indoc",
"inkwell 0.1.0",

View file

@ -16,7 +16,7 @@ bumpalo = { version = "3.8.0", features = ["collections"] }
encode_unicode = "0.3.6"
[dev-dependencies]
criterion = { version = "0.3.5", features = ["html_reports"] }
criterion = { git = "https://github.com/Anton-4/criterion.rs", features = ["html_reports"]}
pretty_assertions = "1.0.0"
indoc = "1.0.3"
quickcheck = "1.0.3"

View file

@ -43,6 +43,7 @@ libloading = "0.7.1"
wasmer-wasi = "2.2.1"
tempfile = "3.2.0"
indoc = "1.0.3"
criterion = { git = "https://github.com/Anton-4/criterion.rs" }
# Wasmer singlepass compiler only works on x86_64.
[target.'cfg(target_arch = "x86_64")'.dev-dependencies]

View file

@ -210,9 +210,9 @@ dependencies = [
[[package]]
name = "static_assertions"
version = "0.1.1"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f406d6ee68db6796e11ffd7b4d171864c58b7451e79ef9460ea33c287a1f89a7"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "syn"