#advent-of-code

benchtest

Macro for benching and testing simple functions

2 releases

0.1.1 May 19, 2019
0.1.0 May 19, 2019

#1358 in Development tools

MIT license

3KB

benchtest

Requires nightly compiler for internal test crate.

#![feature(test)]

use benchtest::benchtest;

// ...

benchtest! {
    part_a_test: solve_a(INPUT) => 5434,
    part_b_test: solve_b(INPUT) => "agimdjvlhedpsyoqfzuknpjwt"
}

No runtime deps