Skip to content

Commit aa813b1

Browse files
committed
resolved CIs
1 parent 9252b90 commit aa813b1

3 files changed

Lines changed: 6 additions & 154 deletions

File tree

crates/fula-blockstore/benches/blockstore_benchmarks.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//! Benchmarks for BlockStore operations
22
33
use criterion::{black_box, criterion_group, criterion_main, Criterion, BenchmarkId, Throughput};
4-
use fula_blockstore::{BlockStore, memory::MemoryBlockStore};
5-
use fula_blockstore::chunking::Chunker;
4+
use fula_blockstore::{BlockStore, memory::MemoryBlockStore, Chunker, ChunkerConfig};
65

76
fn generate_data(size: usize) -> Vec<u8> {
87
(0..size).map(|i| (i % 256) as u8).collect()
@@ -63,9 +62,11 @@ fn bench_chunking(c: &mut Criterion) {
6362
group.throughput(Throughput::Bytes(*size as u64));
6463
group.bench_with_input(BenchmarkId::new("fixed", size), size, |b, _| {
6564
b.iter(|| {
66-
let chunker = Chunker::fixed(256 * 1024);
67-
let chunks: Vec<_> = chunker.chunk(&data).collect();
68-
black_box(chunks)
65+
let chunker = Chunker::with_config(
66+
ChunkerConfig::with_chunk_size(256 * 1024).unwrap(),
67+
);
68+
let result = chunker.chunk_bytes(&data);
69+
black_box(result)
6970
});
7071
});
7172
}

crates/fula-core/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,3 @@ test-log = { workspace = true }
5151
tempfile = { workspace = true }
5252
rstest = { workspace = true }
5353
tokio-test = "0.4"
54-
55-
[[bench]]
56-
name = "prolly_benchmarks"
57-
harness = false

crates/fula-core/benches/prolly_benchmarks.rs

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)