-
GoodJsCode
Discontinued GoodJsCode™ book. Learn the best coding practices and standards to follow for creating professional quality JavaScript code that lasts long! 💪
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
// Run: node benchmark-uuid-vs-core-crypto.js // native randomUUID crypto benchmark const { randomUUID } = require("crypto"); console.time("crypto.randomUUID()"); for (let time = 0; time < 10_000_000; time++) { randomUUID(); } console.timeEnd("crypto.randomUUID()"); // uuid package benchmark const { v4 } = require("uuid"); console.time("uuid.v4()"); for (let time = 0; time < 10_000_000; time++) { v4(); } console.timeEnd("uuid.v4()"); // note, I've used 10_000_000 with _ which are numeric separators // https://github.com/pH-7/GoodJsCode#-clearreadable-numbers