Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 288 Bytes

readme.md

File metadata and controls

10 lines (8 loc) · 288 Bytes

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