This is a flawed benchmark for a few reasons:
console.time and console.timeEnd does not return high resolution time.
console.time
console.timeEnd
Allocations of the first case are not properly cleaned up which can caused issues for other cases.