cpu-benchmark
v1.0.1
Published
Two functions that measure the computation power
Downloads
2,747
Maintainers
Readme
CPU Benchmark
const { fib, dist } = require('cpu-benchmark')
const duration = fib(41) // Returns time required (ms)
// to calculate the 41. fibonacci number recursively.
const ops = dist(1000) // Returns the amount of operations
// (distance matrix calculations) in 1000ms