Skip to content

Commit

Permalink
fix test & benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 24, 2024
1 parent b175a64 commit c028387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion screenpipe-vision/benches/ocr_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fn bench_windows_ocr(c: &mut Criterion) {

This comment has been minimized.

Copy link
@louis030195

louis030195 Aug 24, 2024

Author Collaborator

@m13v FYI

for _ in 0..iters {
let start = std::time::Instant::now();
let (result, _) = perform_ocr_windows(black_box(&image)).await;
let (result, _, _) = perform_ocr_windows(black_box(&image)).await;
total_duration += start.elapsed();

let accuracy = calculate_accuracy(&result, EXPECTED_KEYWORDS);
Expand Down
2 changes: 1 addition & 1 deletion screenpipe-vision/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn test_ocr_output() -> Result<(), Box<dyn std::error::Error>> {
// Start timing
let start = Instant::now();

let (text, json_output) = perform_ocr_tesseract(&image);
let (text, json_output, _) = perform_ocr_tesseract(&image);

// Stop timing
let duration = start.elapsed();
Expand Down

0 comments on commit c028387

Please sign in to comment.