Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1## About
2
3This is a set of benchmarks assessing the performance of various graphCache operations. The operations are of varying sizes, complexitites, and are accomplished via a singular `urql` client instance. Client has a stubbed out GQL API (fetchExchange) to perform GQL operations against.
4
5## Usage
6
7#### 1. Install dependencies in repo root.
8
9To get started, make sure to install necessary dependencies in the root directory of your clone.
10
11```bash
12# In root directory
13yarn or npm i
14```
15
16#### 2. Run benchmark(s).
17
18The commands to run benchmarks follows a certain syntax:
19npm run `ActionQuantityComplexity` => i.e., npm run read500c
20read === Action
215000 === Quantity
22c === Complex
23
24Action & Quantity are required, but c is optional, as not all operations involve a more complex data structure.
25
26There are two exceptions that don't follow the beformentioned conventions for the commands to run benchmarks. They are `addTodo` & `updateTodo`.
27They are simply run as follows:
28
29```
30npm run addTodo
31
32npm run updateTodo
33```
34
35#### 3. Benchmark Expections
36
37Upon executing a command, `Tachometer` will automatically execute the benchmarks via your default browser. Done 50 times prior to returning benchmark result in the console where the command was launched.