mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-06 04:19:34 +00:00
bench: encode without compress
This commit is contained in:
parent
af6342a52d
commit
379c3201f5
1 changed files with 2 additions and 2 deletions
|
@ -120,11 +120,11 @@ mod run {
|
|||
});
|
||||
b.bench_function("B4_encode_snapshot", |b| {
|
||||
b.iter(|| {
|
||||
let _ = loro.encode_all();
|
||||
let _ = loro.encode_with_cfg(EncodeConfig::snapshot().without_compress());
|
||||
})
|
||||
});
|
||||
b.bench_function("B4_decode_snapshot", |b| {
|
||||
let buf = loro.encode_all();
|
||||
let buf = loro.encode_with_cfg(EncodeConfig::snapshot().without_compress());
|
||||
let mut store2 = LoroCore::default();
|
||||
b.iter(|| {
|
||||
store2.decode(&buf).unwrap();
|
||||
|
|
Loading…
Reference in a new issue