I updated the jsperf test with your suggestion