cpu-benchmark

Two functions that measure the computation power

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cpu-benchmark
101.0.14 years ago4 years agoMinified + gzip package size for cpu-benchmark in KB

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