Created
January 11, 2019 21:53
-
-
Save isaaclyman/352bf9aac5fd4cf0019fb4498ccbf850 to your computer and use it in GitHub Desktop.
Revisions
-
isaaclyman created this gist
Jan 11, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ function testSpeed() { const stack = []; function assignValue(index) { stack[index] = 'bob ' + index; } const t0 = performance.now() for (let ix = 0; ix < 15000; ix++) { assignValue(ix); } const t1 = performance.now() return [stack, t1 - t0]; }