Skip to content

Commit

Permalink
Benchmarks: record uname, Eio backend, and number of cores
Browse files Browse the repository at this point in the history
  • Loading branch information
talex5 committed Mar 24, 2024
1 parent 911ccc8 commit 5b68ba2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bench/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ let () =
"metrics", `List metrics;
]
in
let uname = Eio.Process.parse_out env#process_mgr Eio.Buf_read.take_all ["uname"; "-a"] in
Fmt.pr "%a@." (Yojson.Safe.pretty_print ~std:true) @@ `Assoc [
"config", `Assoc [
"uname", `String uname;
"backend", `String env#backend_id;
"recommended_domain_count", `Int (Domain.recommended_domain_count ());
];
"results", `List (List.map run benchmarks);
]

0 comments on commit 5b68ba2

Please sign in to comment.