diff --git a/crates/loro-internal/benches/encode.rs b/crates/loro-internal/benches/encode.rs index 2d4878f5..732dc231 100644 --- a/crates/loro-internal/benches/encode.rs +++ b/crates/loro-internal/benches/encode.rs @@ -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();