mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 13:39:12 +00:00
11 lines
353 B
Rust
11 lines
353 B
Rust
use compact_bytes::CompactBytes;
|
|
use criterion::black_box;
|
|
|
|
pub fn main() {
|
|
let data = include_str!("../benches/permuted.mht");
|
|
for _ in 0..1000 {
|
|
let mut bytes = CompactBytes::new();
|
|
bytes.append(&black_box(data).as_bytes()[..data.len() / 2]);
|
|
bytes.alloc_advance(black_box(&data.as_bytes()[data.len() / 2..]));
|
|
}
|
|
}
|