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
-
Notifications
You must be signed in to change notification settings - Fork 0
Strernd/cpu-benchmark
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Two functions that measure the computation power for Node.js
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published