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;
aiken add aiken-lang/sample --version v0.0.0
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.