1.0.1 • Published 6 years ago
cpu-benchmark v1.0.1
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