bahmutov / lazy-ass

Lazy node assertions without performance penalty
http://glebbahmutov.com/lazy-ass/
MIT License
68 stars 5 forks source link

Re-check jsperf statistics #22

Open meszaros-lajos-gyorgy opened 7 years ago

meszaros-lajos-gyorgy commented 7 years ago

According to the README file "Concatenating 2 strings before passing to a function is about 30% slower than passing 2 separate strings."

I opened the link to the jsperf testpage and executed the benchmark and the results were the following:

Testing in Firefox 52.0.0 / Windows 7 0.0.0 > the results equaled Testing in Chrome 58.0.3029 / Windows 7 0.0.0 > the results differed by 9%, making concatenation win. Testing in IE 11.0.0 / Windows 7 0.0.0 > the results differed by 9%, making passing 2 separate strings win.

Can you please check and see if these statistics are still valid and update the README as necessary or provide exact platforms and engines which produce this difference?