Skip to content

Instantly share code, notes, and snippets.

@a-boertien
a-boertien / object_it_performance.js
Last active August 16, 2023 04:08 — forked from chathurawidanage/object_it_performance.js
Script to compare performance of Object values iterating techniques | Performance Comparison [https://gists.cwidanage.com/2018/06/how-to-iterate-over-object-entries-in.html]
const { PerformanceObserver, performance } = require('perf_hooks');
const objectSize = 10000;
const iterations = 100;
console.log("Starting performance test with %d object size and %d iterations",
objectSize, iterations);
const values = {
ENTRIES: 0,