Created
January 29, 2016 20:17
-
-
Save evanlucas/3274995a21cca47dff5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const ITER = 1e6 | |
var t = process.hrtime() | |
for (var i = 0; i < ITER; i++) { | |
// put your call here | |
// isUUID(a valid uuid) | |
} | |
t = process.hrtime(t) | |
console.log(((t[0] * 1e9 + t[1]) / ITER).toFixed(1), 'ns/op') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment