Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Firefox 54
Linux
Other
7 years ago
Test name Executions per second
Native XHR 7158.4 Ops/sec
Native XHR 2 6891.9 Ops/sec
Native fetch.then 2012.5 Ops/sec
jQuery Ajax 634.3 Ops/sec
jQuery Ajax (Async) 701.4 Ops/sec
jQuery Get 622.7 Ops/sec
jQuery Get 2 584.3 Ops/sec
jQuery getJSON 692.4 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