loro/crates/examples/examples/init_sheet.rs
2024-08-09 16:03:13 +08:00

14 lines
472 B
Rust

use examples::sheet::init_large_sheet;
use std::time::Instant;
pub fn main() {
let start = Instant::now();
let doc = init_large_sheet(1_000_000);
let init_duration = start.elapsed().as_secs_f64() * 1000.;
println!("init_duration {}", init_duration);
let start = Instant::now();
let snapshot = doc.export_snapshot();
let duration = start.elapsed().as_secs_f64() * 1000.;
println!("export duration {} size={}", duration, snapshot.len());
}