Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benchmark introspecting a schema built from SDL in a supplied file.
Use it like so: ```shell yarn run benchmark ```` Additionally there is a profile command which runs the benchmark with `--prof`: ```shell yarn run profile ```` Note that on Ubuntu 16.04 this requires: ```shell sudo apt install linux-tools-common gawk linux-tools-generic linux-tools-4.10.0-35-generic sudo sh -c 'echo 1 >/proc/sys/kernel/perf_event_paranoid' ``` On my laptop it produces this: ``` $ yarn run benchmark > [email protected] benchmark /home/osboxes/graphql-js > babel-node ./resources/benchmark/run.js introspectionQuery x 24.59 ops/sec ±3.87% (45 runs sampled) ```
- Loading branch information