Add benchmarking functionality.

Usage: npm run benchmark
Mark a test case as benchmark by adding #benchmark to its description.