QubitProducts / slapdash

A lightweight JavaScript utility belt with native method override protection
http://npmjs.org/packages/slapdash
MIT License
3 stars 1 forks source link

Investigate performance difference between ES5 natives and simple vanilla #3

Closed jimmed closed 8 years ago

jimmed commented 8 years ago

For each of the following native browser methods that we use, we need to compare performance between the native version and the vanilla shim/featurefill/alternative.

We want to check this performance gap in modern browsers we intend to support.

jimmed commented 8 years ago

screenshot 2016-04-06 15 28 07

The numbers in each of the cells is operations per second. Performed using https://github.com/qubitdigital/slapdash/pull/6

This is a pretty compelling result. For these 3 browsers, in nearly every case, native browser methods are significantly more performant than their vanilla counterparts.