avsm / bechamel

Agnostic benchmark in OCaml (proof-of-concept)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bechamel - Agnostic benchmark tool in OCaml

Bechamel is a toolkit to do a micro-benchmarking on your functions. The user is able to extend metrics (depending on your machine). Intially, Bechamel can record monotonic clock & garbage collector. bechamel-perf can help you for perf metrics if you are a Linux user.

Bechamel can show results:

  • in your terminal with bechamel-notty
  • via a HTML + JavaScript page with bechamel-js

You can see an example of the produced HTML page here. Some examples exist which take the opportunity of the output and metrics:

  • fact.ml which produces an HTML + JavaScript report
  • list.ml which shows results into your terminal
  • sqrt.ml which uses perf metrics

The documentation is available here.

About

Agnostic benchmark in OCaml (proof-of-concept)

License:MIT License


Languages

Language:OCaml 75.4%Language:JavaScript 17.7%Language:C 4.8%Language:CSS 1.5%Language:HTML 0.5%Language:Standard ML 0.2%