mocha.js helpers for benchmarking