Skip to content

Instantly share code, notes, and snippets.

Avatar

Yuriy Litvin YuriyLitvin

  • Ukraine, Kharkiv
View GitHub Profile
@Chunlin-Li
Chunlin-Li / 12021015.md
Created Dec 2, 2015
node / javascript performance : Set vs Object and Map vs Object
View 12021015.md

Set vs Object

node version : v4.1.2
platform: Intel I7, 16G DDR3, Ubuntu x64

var theSet = new Set();
start = process.hrtime();
/***********************************/
for(let i = 0 ; i < N; i++ ) {