Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Chrome 66
Mac OS X 10.11.6
Other
6 years ago
Test name Executions per second
Native XHR 6041.7 Ops/sec
Native XHR 2 6430.5 Ops/sec
Native fetch.then 7290.6 Ops/sec
jQuery Ajax 3398.6 Ops/sec
jQuery Ajax (Async) 3634.0 Ops/sec
jQuery Get 3367.6 Ops/sec
jQuery Get 2 3357.7 Ops/sec
jQuery getJSON 3633.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Native XHR

  • Native XHR 2

  • Native fetch.then

  • jQuery Ajax

  • jQuery Ajax (Async)

  • jQuery Get

  • jQuery Get 2

  • jQuery getJSON