ky vs fetch

Benchmark created on


Setup

<script src="https://cdn.jsdelivr.net/npm/ky/+esm"></script>
"}

Test runner

Ready to run.

Testing in
TestOps/sec
fetch
 fetch('https://jsonplaceholder.typicode.com/todos')
  .then(res => res.json())
  .then(data => {
    console.log(data);
  });
ready
ky
ky.get('https://jsonplaceholder.typicode.com/todos').json()
  .then(data => {
    console.log(data);
  });
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.