cpu-benchmark

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cpu-benchmark

      Weekly Downloads

      477

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      2.32 kB

      Total Files

      3

      Last publish

      Collaborators

      • bstrehl