fastify-ata 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Fastify plugin for [ata-validator](https://ata-validator.com) — JSON Schema validation powered by simdjson.
4
4
 
5
- Replaces the default ajv validator compiler with ata-validator for **120x faster schema compilation**.
5
+ Replaces the default ajv validator compiler with ata-validator for **145x faster schema compilation**.
6
6
 
7
7
  ## Install
8
8
 
@@ -49,8 +49,9 @@ That's it. All your existing JSON Schema route definitions work as-is.
49
49
 
50
50
  | | ata-validator | ajv |
51
51
  |---|---|---|
52
- | Schema compilation | **120x faster** | baseline |
53
- | Engine | simdjson + RE2 + codegen | JS |
52
+ | Parallel batch (10K) | **12.5M items/sec (5.9x faster)** | 2.1M items/sec |
53
+ | Schema compilation | **145x faster** | baseline |
54
+ | Engine | simdjson + RE2 + multi-core | JS (single-thread) |
54
55
  | Spec compliance | 98.6% Draft 2020-12 | ~100% |
55
56
  | Standard Schema V1 | Yes | No |
56
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastify-ata",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Fastify plugin for ata-validator — JSON Schema validation powered by simdjson",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",