Something went wrong. Try again.
Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
Something went wrong. Try again.
980 B · 35 lines
HTML
at main
123456789101112131415161718192021222324252627282930313233343536<!doctype html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>10000 Reads Complex</title> <script> window.process = { env: { NODE_ENV: 'development' } }; </script> </head>
<body> <div id="root"></div> <script type="module"> import urqlClient from './urqlClient.js'; import * as bench from '/bench.js'; import { makeEntries } from './makeEntries.js'; import { makeAuthor } from './entities.js'; import { getAllAuthors, addAuthors } from './benchmarks.js';
// create authors to be added/written const tenThousandAuthors = makeEntries(10000, makeAuthor);
const benchmark = async () => { await addAuthors(tenThousandAuthors); // measure how long read takes bench.start(); await getAllAuthors(); bench.stop(); };
benchmark(); </script> </body></html>