Which Browser runs JavaScript the Fastest?

We recently introduced a new feature in our Support Center, Autosuggested Articles. While you’re typing in a question you’d like our Community Support to answer, we suggest a list of articles below your question that may help with getting you support.

new-autosuggest-feature

Technically, every time a character is pressed, a JavaScript function is ran and attempts to find articles to list for you. This JavaScript function loops through quite a bit of data, but in our testing it ran relatively well.

We did recently receive feedback from a user stating that this feature took 15+ seconds to run each time they typed in a character. During our troubleshooting of this issue, we decided to gather data on how long it takes each browser to execute our JavaScript function. We’d like to share our results with you now.

The Experiment

When running our test, we updated the Javascript code to keep track of how long it takes to run through the function, and then alert the time it took (in milliseconds).

We typed in the search phrase “wordpress plugin install search”, and after each character we typed we logged how much time the JavaScript function took to find results.

Our tests were ran on a Windows 7 desktop with the following browsers:

BrowserVersion
Internet Explorer8
FireFox10
Chrome17
Safari5
Opera11

The Results

Which browser ran our JavaScript code the fastest?

Opera.

Closely behind Opera were Chrome and Firefox, while Safari and Internet Explorer took much longer.

BrowserRankTotal JavaScript
run time
How much slower
than Opera?
Opera1st1684
Chrome2nd199819%
Firefox3rd219430%
Safari4th6417281%
Internet Explorer5th7912370%
chart-which-browser-runs-javascript-the-fastest

(click to see full size)

Raw Result Data
The table below lists the time in milliseconds each browser took to execute the JavaScript, along with the search phrase that was passed to the function.

IEChromeFirefoxSafariOperaOur Search Phrase
171608016648w
156804416334wo
156444516033wor
156445816533word
156464516133wordp
156465916033wordpr
172454515832wordpre
218586618845wordpres
214575818844wordpress
219585719245wordpress (space)
234617019548wordpress p
234616619448wordpress pl
235606420648wordpress plu
234616419148wordpress plug
234626019547wordpress plugi
249637021951wordpress plugin
250636520651wordpress plugin (space)
256636920551wordpress plugin i
250636520451wordpress plugin in
281676821965wordpress plugin ins
281667020965wordpress plugin inst
281657121065wordpress plugin insta
281667021265wordpress plugin instal
343779224776wordpress plugin install
327799125076wordpress plugin install (space)
374809325980wordpress plugin install s
3598010026173wordpress plugin install se
359819626074wordpress plugin install sea
3588110225974wordpress plugin install sear
359809525874wordpress plugin install searc
359819625774wordpress plugin install search

Was this article helpful? Join the conversation!