I'm getting significantly faster performance using a native array this.arr = []; and replacing all instances of this[] with this.arr[] . Running the two_million benchmark, I'm getting ~23 milllion ops/s with this[] vs 25-26 million ops/s using this.arr[]
Thoughts?
Darwin 13.4.0 x64
Node.JS 4.1.2
V8 4.5.103.35
Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz × 8
I'm getting significantly faster performance using a native array
this.arr = [];and replacing all instances ofthis[]withthis.arr[]. Running the two_million benchmark, I'm getting ~23 milllion ops/s withthis[]vs 25-26 million ops/s usingthis.arr[]Thoughts?
Darwin 13.4.0 x64
Node.JS 4.1.2
V8 4.5.103.35
Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz × 8