Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Firefox 54
Windows 7
Other
7 years ago
Test name Executions per second
Native XHR 64.2 Ops/sec
Native XHR 2 44.2 Ops/sec
Native fetch.then 37.4 Ops/sec
jQuery Ajax 49.9 Ops/sec
jQuery Ajax (Async) 35.2 Ops/sec
jQuery Get 37.9 Ops/sec
jQuery Get 2 301.5 Ops/sec
jQuery getJSON 298.2 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