Travis build: 559

This commit is contained in:
30secondsofcode
2018-09-29 13:47:39 +00:00
parent d1aaaf61aa
commit fd8ffcd2af
20 changed files with 194 additions and 20 deletions

View File

@ -11,7 +11,7 @@ Omit the second argument, `iterations`, to use the default of 100 iterations.
const hz = (fn, iterations = 100) => {
const before = performance.now();
for (let i = 0; i < iterations; i++) fn();
return 1000 * iterations / (performance.now() - before);
return (1000 * iterations) / (performance.now() - before);
};
```