array length 10
remove the sort from for loop method
array length 100,000
Math.trunc(original) ~~original; // Double negation original & -1; // Bitwise AND with -1 original | 0; // Bitwise OR with 0 original ^ 0; // Bitwise XOR with 0 original >> 0; // Bitwise shifting by 0
Test on isEqual performance
arr length 10 (replaced if else with a switch for the win?)
New benchmark Your benchmarks
Source code: GitHub/MeasureThat.net
Report issues: MeasureThat.net/Issues
Based on: Benchmark.js (v2.1.1)
Facebook page: https://www.facebook.com/MeasureThat.Net