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.
- package/README.md +4 -3
- 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 **
|
|
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
|
-
|
|
|
53
|
-
|
|
|
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
|
|