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 7029.4 Ops/sec
Native XHR 2 7734.6 Ops/sec
Native fetch.then 8623.9 Ops/sec
jQuery Ajax 4048.4 Ops/sec
jQuery Ajax (Async) 3942.6 Ops/sec
jQuery Get 3933.5 Ops/sec
jQuery Get 2 4171.6 Ops/sec
jQuery getJSON 3795.1 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