-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
28 additions
and
3,816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
api.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# Benchmark against ajv | ||
|
||
run `erb api.yml.erb > api.yml` in this directory | ||
run `yarn generate` in root directory | ||
run tests in the benchmark.spec.ts | ||
Run `yarn generate` in root directory to generate the necessary artifacts. This will generate type definitions and the | ||
openapi schema for the bencmark test data. | ||
|
||
Run the benchmark.spec.ts test using jest. Note that the benchmark test does not fail but outputs timing information to | ||
console.log. | ||
|
||
Sizes of the data can be configured in the test file. Note however that the generated data must match the schema in | ||
api.yml | ||
|
||
## Change the benchmark schema | ||
|
||
The benchmark schema in api.yml is generated from an ejs template in api.yml.ejs. | ||
|
||
The benchmark outputs timing information. Sizes of the data can be configured in the test file. |
Oops, something went wrong.