Extract timing function.
Add package.json.
Add more tests.
More intelligent measuring and reporting.