Testing alternatives to native functions on jsperf.