mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
more precise benchmarks for caches
This commit is contained in:
parent
62135fc9b7
commit
a2617fd83c
1 changed files with 5 additions and 2 deletions
|
|
@ -142,8 +142,11 @@ module Cache = struct
|
|||
|
||||
let bench_fib n =
|
||||
let l =
|
||||
[ "replacing_fib", make_fib (Cache.replacing 256), n
|
||||
; "LRU_fib", make_fib (Cache.lru 256), n
|
||||
[ "replacing_fib (128)", make_fib (Cache.replacing 128), n
|
||||
; "LRU_fib (128)", make_fib (Cache.lru 128), n
|
||||
; "replacing_fib (16)", make_fib (Cache.replacing 16), n
|
||||
; "LRU_fib (16)", make_fib (Cache.lru 16), n
|
||||
; "unbounded", make_fib (Cache.unbounded 32), n
|
||||
]
|
||||
in
|
||||
let l = if n <= 20
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue