Skip to content
Snippets Groups Projects
Select Git revision
  • 2ef9eb722662e03d0622edeb61fd6c270856567d
  • main default protected
  • fix-e74726
  • 1.1.0
  • 1.0.0
  • 0.7.0
  • 0.6.0
  • 0.5.2
  • 0.5.1
  • 0.5.0
  • 0.4.1
  • 0.4.0
  • 0.3.0
  • 0.2.0
  • 0.1.0
15 results

plnk

  • Clone with SSH
  • Clone with HTTPS
  • a.stevan's avatar
    2ef9eb72
    History

    PLNK - a simple benchmark framework

    installation

    cargo add plnk --git https://gitlab.isae-supaero.fr/a.stevan/plnk              # latest
    cargo add plnk --git https://gitlab.isae-supaero.fr/a.stevan/plnk --tag 0.2.0  # a specific version

    usage

    see the arithmetic example which can be used as

    cargo run --release --example arithmetic -- --nb-measurements 1000

    the output of PLNK

    the output of the snippet above will have two parts:

    on STDERR

    the benchmarking process will show progress bars while running and the details of each benchmark will be shown as follows

    bencher: arithmetic, label: addition
    bencher: arithmetic, label: substraction
    bencher: arithmetic, label: multiplication
    bencher: random, label: sampling

    on STDOUT

    the measurements as valid NDJSON, i.e. one JSON object per line

    {"label": "addition", "name": "arithmetic", "times": [69, 14, 15, 14, 13, 13, 15, 14, 15, 14]}
    {"label": "substraction", "name": "arithmetic", "times": [29, 14, 14, 15, 15, 14, 13, 14, 13, 15]}
    {"label": "multiplication", "name": "arithmetic", "times": [28, 13, 15, 14, 14, 14, 13, 15, 14, 14]}
    {"label": "sampling", "name": "random", "times": [35675, 86, 63, 74, 53, 75, 74, 54, 53, 87]}