YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: benchmarks
Louis Beaumont4f2b13102f76
diff --git a/screenpipe-server/benches/db_benchmarks.rs b/screenpipe-server/benches/db_benchmarks.rsindex dbf7674dd..7b0333d2a 100644--- a/screenpipe-server/benches/db_benchmarks.rs+++ b/screenpipe-server/benches/db_benchmarks.rs@@ -13,7 +13,10 @@ async fn setup_large_db(size: usize) -> DatabaseManager {let mut rng = rand::thread_rng();for _ in 0..size {- let _video_id = db.insert_video_chunk("test_video.mp4", "test_device").await.unwrap();+ let _video_id = db+ .insert_video_chunk("test_video.mp4", "test_device")+ .await+ .unwrap();let frame_id = db.insert_frame("test_device", None).await.unwrap();let ocr_text = format!("OCR text {}", rng.gen::<u32>());let text_json = format!(r#"{{"text": "{}"}}"#, ocr_text);@@ -40,6 +43,7 @@ async fn setup_large_db(size: usize) -> DatabaseManager {"test_device".to_string(),screenpipe_audio::DeviceType::Input,),+ None,).await.unwrap();@@ -60,7 +64,7 @@ fn bench_search(c: &mut Criterion) {group.measurement_time(std::time::Duration::from_secs(60)); // Increase measurement time to 60 secondsfor &size in &db_sizes {- for &content_type in &content_types {+ for content_type in &content_types {for &query in &search_queries {group.bench_function(format!("{:?}_db_size_{}_query_{}", content_type, size, query),@@ -69,7 +73,7 @@ fn bench_search(c: &mut Criterion) {let db = setup_large_db(size).await;db.search(query,- content_type,+ content_type.clone(),100,0,None,