fastify-ata 0.2.14 → 0.2.16

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 +10 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -120,21 +120,24 @@ Works with Fastify v5's Standard Schema support, tRPC, TanStack Form, Drizzle OR
120
120
 
121
121
  | Scenario | ata | ajv | |
122
122
  |---|---|---|---|
123
- | **Serverless cold start** (50 schemas) | 7.7ms | 96ms | **12.5x faster** |
123
+ | **Constructor cold start** | 1.25M ops/sec | 873 ops/sec | **1,432x faster** |
124
+ | **Serverless cold start** (50 schemas) | 0.1ms | 23ms | **242x faster** |
125
+ | **First validation** (construct + validate) | 15.7K ops/sec | 855 ops/sec | **18x faster** |
124
126
  | **ReDoS protection** (catastrophic pattern) | 0.3ms | 765ms | **immune** |
125
127
  | **Batch NDJSON** (10K items, multi-core) | 13.4M/sec | 5.1M/sec | **2.6x faster** |
126
- | **validate(obj)** valid (isolated) | 68M ops/sec | 8M ops/sec | **8.5x faster** |
127
- | **validate(obj)** invalid (isolated) | 17M ops/sec | 8M ops/sec | **2.1x faster** |
128
- | **validateJSON(str)** valid | 3.0M ops/sec | 1.9M ops/sec | **1.6x faster** |
129
- | **Fastify startup** (500 routes) | 46ms | 77ms (standalone) | **1.7x faster** |
130
- | **Schema compilation** | 113K ops/sec | 818 ops/sec | **138x faster** |
128
+ | **validate(obj)** valid (isolated) | 14.6M ops/sec | 8.3M ops/sec | **1.8x faster** |
129
+ | **validate(obj)** invalid (isolated) | 12.9M ops/sec | 8.0M ops/sec | **1.6x faster** |
130
+ | **validateJSON(str)** valid | 2.1M ops/sec | 1.9M ops/sec | **1.1x faster** |
131
+ | **Fastify startup** (5 routes) | 0.5ms | 6.0ms | **12x faster** |
132
+ | **Schema compilation** | 136K ops/sec | 794 ops/sec | **171x faster** |
131
133
 
132
134
  ### Things only ata can do
133
135
 
134
136
  - **RE2 regex engine** - linear-time guaranteed, immune to ReDoS attacks
135
137
  - **Multi-core parallel validation** - NDJSON batch at 12.5M items/sec
136
138
  - **Standard Schema V1** - native support, ajv doesn't have it
137
- - **138x faster compilation** - serverless cold starts, dynamic schemas
139
+ - **Lazy compilation** - near-zero constructor, 1,432x faster cold start
140
+ - **171x faster compilation** - serverless cold starts, dynamic schemas
138
141
 
139
142
  ## License
140
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastify-ata",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "Fastify plugin for ata-validator — beats ajv on every valid-path benchmark. 2.7x faster validate(obj), 151x faster compilation, simdjson + multi-core.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "homepage": "https://github.com/ata-core/fastify-ata#readme",
28
28
  "dependencies": {
29
- "ata-validator": "^0.4.12",
29
+ "ata-validator": "^0.4.14",
30
30
  "fastify-plugin": "^5.1.0",
31
31
  "sanitize-filename": "^1.6.4"
32
32
  },