benchmark

This function runs the passed callable T for the duration of maxRuntime. It will count how often T is run in the duration and how long each run took to complete.

Unless compiled in release mode, statistics will be printed to stderr. If compiled in release mode the statistics are appended to a file called name.

Meta