Skip to content

brendanashworth/bench

This branch is 12 commits ahead of c9s/bench:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cd51689 · Apr 3, 2015

History

15 Commits
Oct 9, 2014
Jul 15, 2014
Apr 3, 2015
Jul 8, 2014
Jul 8, 2014
Oct 9, 2014
Jul 15, 2014

Repository files navigation

bench

Bench is a C benchmarking utility. Forked from c9s/bench.

Bench Screenshot

Usage

Here is an example. You can view a full example here.

#include "bench.c"

void example_benchmark() {
    BENCHMARK(example_bench, 3)

   	// All the code you want to benchmark

    END_BENCHMARK(example_bench)
    BENCHMARK_SUMMARY(example_bench);
}

void example_measure() {
    MEASURE(example_measure)

   	// All the code you want to measure

    END_MEASURE(example_measure)
    MEASURE_SUMMARY(example_measure);
}

About

Benchmark tools for C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%