update dependencies, create benches
This commit is contained in:
parent
d246c54cd9
commit
53ea542f36
8
src/main/rust/Cargo.lock
generated
8
src/main/rust/Cargo.lock
generated
@ -465,9 +465,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.155"
|
||||
version = "0.2.158"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
|
||||
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
|
||||
|
||||
[[package]]
|
||||
name = "linux-raw-sys"
|
||||
@ -751,9 +751,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "smol"
|
||||
version = "2.0.0"
|
||||
version = "2.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e635339259e51ef85ac7aa29a1cd991b957047507288697a690e80ab97d07cad"
|
||||
checksum = "aad24f41392790e6ac67f4f4cd871da61f7d758e07b5622431e491e897d9c8a7"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"async-executor",
|
||||
|
@ -6,17 +6,17 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
bstr = "1.9.1"
|
||||
bstr = "1.10.0"
|
||||
fast-float = "0.2.0"
|
||||
memchr = "2.7.4"
|
||||
memmap2 = "0.9.4"
|
||||
rayon = "1.10.0"
|
||||
rustc-hash = "2.0.0"
|
||||
libc = "0.2.155"
|
||||
smol = "2.0.0"
|
||||
libc = "0.2.158"
|
||||
smol = "2.0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = { version = "0.5", features = ["html_reports"] }
|
||||
criterion = { version = "0.5.1", features = ["html_reports"] }
|
||||
|
||||
[features]
|
||||
json = []
|
||||
@ -35,7 +35,7 @@ name = "multi_threaded"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "polars"
|
||||
name = "multi_threaded_smol"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
|
@ -1,8 +1,9 @@
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use onebrc::implementations::libraries::run;
|
||||
|
||||
pub fn criterion_benchmark(c: &mut Criterion) {
|
||||
c.bench_function("polars", |b| {b.iter(|| /*run_polars()*/ ())});
|
||||
c.bench_function("libraries", |b| {b.iter(|| run())});
|
||||
}
|
||||
|
||||
criterion_group!(benches, criterion_benchmark);
|
||||
criterion_main!(benches);
|
||||
criterion_main!(benches);
|
9
src/main/rust/benches/multi_threaded_smol.rs
Normal file
9
src/main/rust/benches/multi_threaded_smol.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use onebrc::implementations::multi_threaded_smol::run;
|
||||
|
||||
pub fn criterion_benchmark(c: &mut Criterion) {
|
||||
c.bench_function("multithreadedsmol", |b| {b.iter(|| run())});
|
||||
}
|
||||
|
||||
criterion_group!(benches, criterion_benchmark);
|
||||
criterion_main!(benches);
|
Loading…
Reference in New Issue
Block a user