Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Fetch (default) 3460.3 Ops/sec
Fetch (no-store) 2145.7 Ops/sec
HTML Preparation code:
AخA
 
1
<div id="test"></div>
Tests:
  • Fetch (default)

     
    fetch('https://jsonplaceholder.typicode.com/todos')
      .then((response) => {
        return response.json();
      })
      .then((data) => {
        console.log(data);
      });
  • Fetch (no-store)

     
    fetch('https://jsonplaceholder.typicode.com/todos', {
      cache: 'no-store'
    })
      .then((response) => {
        return response.json();
      })
      .then((data) => {
        console.log(data);
      });