Skip to content

Commit

Permalink
Merge pull request #673 from talex5/bench-init
Browse files Browse the repository at this point in the history
Make benchmarks start faster
  • Loading branch information
talex5 authored Jan 25, 2024
2 parents da4f6c3 + 5497bdd commit b68d396
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bench/bench_buf_read.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module R = Eio.Buf_read

let test_data = String.init 100_000_000 (fun _ -> 'x')

let run _env =
let test_data = String.make 100_000_000 'x' in
let r = R.of_string test_data in
let t0 = Unix.gettimeofday () in
let i = ref 0 in
Expand Down

0 comments on commit b68d396

Please sign in to comment.