JSConf JP

Are jsperf's 'Faster' Patterns Still Faster? Let's Measure

Sponsor LTTrack AJapanese

ともやん

jsperf.com was a service that allowed users to publish and share tests comparing the speed of JavaScript code snippets. It was widely and long used as evidence for statements such as “this syntax is faster,” but is now closed. With its successor, jsperf.app, you can rerun past tests in modern browsers, but many tests are ten years old, and their data is the small dataset placed there by the author. In this LT, we’ll explain how to copy “fast approaches” found on jsperf.app unchanged into Vitest bench and rerun the measurements with your own code and data, and discuss situations in which doing so is worthwhile.