update dependencies, create benches

This commit is contained in:
Fabian Schmidt 2024-08-19 14:58:34 +02:00
parent d246c54cd9
commit 53ea542f36
4 changed files with 21 additions and 11 deletions

View File

@ -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",

View File

@ -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]]

View File

@ -1,7 +1,8 @@
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);

View 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);