/sample

A library to help users create Samplers to benchmark their Aiken code

Apache License 2.0Apache-2.0


Aiken aiken/sample

Licence Continuous Integration


The official library for writing samplers (a.k.a Scaled Fuzzers) for the Aiken Cardano smart-contract language.

Warning

This is a work in progress and the API is not stable yet; The sample API for benchmarks is only supported since aiken==1.1.11;

Installation

aiken add aiken-lang/sample --version v0.0.0

Getting started

use aiken/sample.{Linear}

fn my_function(n: Int) -> Int {
  n * 2
}

bench multiply_bench(n via sample.int(Linear(5))) {
  my_function(n)
}

Tip

For more information, read the user manual.