diff --git a/src/main/rust/Cargo.lock b/src/main/rust/Cargo.lock index 1a9db53..410b248 100644 --- a/src/main/rust/Cargo.lock +++ b/src/main/rust/Cargo.lock @@ -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", diff --git a/src/main/rust/Cargo.toml b/src/main/rust/Cargo.toml index b24b83a..d7b4096 100644 --- a/src/main/rust/Cargo.toml +++ b/src/main/rust/Cargo.toml @@ -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]] diff --git a/src/main/rust/benches/polars.rs b/src/main/rust/benches/libraries.rs similarity index 55% rename from src/main/rust/benches/polars.rs rename to src/main/rust/benches/libraries.rs index 56f454f..ca422f7 100644 --- a/src/main/rust/benches/polars.rs +++ b/src/main/rust/benches/libraries.rs @@ -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); \ No newline at end of file +criterion_main!(benches); diff --git a/src/main/rust/benches/multi_threaded_smol.rs b/src/main/rust/benches/multi_threaded_smol.rs new file mode 100644 index 0000000..68448f1 --- /dev/null +++ b/src/main/rust/benches/multi_threaded_smol.rs @@ -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);