Skip to content

v3.bench

fn new #

fn new() Bench

struct Bench #

struct Bench {
mut:
	steps    []Step
	total_sw time.StopWatch
	step_sw  time.StopWatch
}

fn (Bench) step #

fn (mut b Bench) step(name string)

fn (Bench) print_report #

fn (b &Bench) print_report()

struct Step #

struct Step {
pub:
	name    string
	time_us i64
	ram_kb  i64
}