Skip to content

riot-ml/scarab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scarab 🪲

A microbenchmarking framework for Riot inspired by Elixir's benchee and Rust's criterion-rs.

Getting Started

opam pin riot git+https://github.com/leostera/riot
opam pin scarab git+https://github.com/leostera/scarab

And you can now create executables that use scarab as a library:

(executable
  (name my_bench)
  (libraries scarab))

Here's an example benchmark:

Scarab.run ~name:"sums"
  [
    ("sum 1", fun () -> sum 1);
    ("sum 100", fun () -> sum 100);
    ("sum 1_000", fun () -> sum 1_000);
    ("sum 2_000", fun () -> sum 2_000);
    ("sum 5_000", fun () -> sum 5_000);
    ("sum 10_000", fun () -> sum 10_000);
    ("sum 100_000", fun () -> sum 100_000);
  ]

About

Benchmarking framework for OCaml

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Languages