Skip to content

Instantly share code, notes, and snippets.

View damiendoligez's full-sized avatar

Damien Doligez damiendoligez

View GitHub Profile
@damiendoligez
damiendoligez / prombench.ml
Created April 9, 2024 12:50
Illustration of the spurious slice problem.
(* Author: Stephen Dolan *)
(* Modified by Damien Doligez *)
let large_allocs = true
let promotion_rate = 50
let collection_rate = 30
let ballast_mb = 100
let iters_m = 50
let rand =
(* compile with:
ocamlfind opt -package unix,domainslib -linkpkg sorttest.ml
*)
module Timings = struct
type t = {
cpu_time : float;
wall_time : float
};;