-
Notifications
You must be signed in to change notification settings - Fork 7
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
120 additions
and
108 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
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 |
---|---|---|
|
@@ -47,12 +47,12 @@ Besides the individual bundle size, the overall size of the library is also sign | |
|
||
At the same time **rescript-schema** is the fastest composable validation library in the entire JavaScript ecosystem. This is achieved because of the JIT approach when an ultra optimized validator is created using `eval`. | ||
|
||
| | [email protected] | [email protected] | [email protected] | | ||
| ----------------------------------------- | --------------------- | --------------- | -------------- | | ||
| **Total size** (minified + gzipped) | 9.82 kB | 14.6 kB | 9.88 kB | | ||
| **Example size** (minified + gzipped) | 4.98 kB | 12.9 kB | 1.22 B | | ||
| **Nested object parsing** | 156,244 ops/ms | 1,304 ops/ms | 3,822 ops/ms | | ||
| **Create schema + Nested object parsing** | 56 ops/ms | 112 ops/ms | 2,475 ops/ms | | ||
| **Eval-free** | ❌ | ✅ | ✅ | | ||
| **Codegen-free** (Doesn't need compiler) | ✅ | ✅ | ✅ | | ||
| **Ecosystem** | ⭐️ | ⭐️⭐️⭐️⭐️⭐️ | ⭐️⭐️⭐️ | | ||
| | [email protected] | [email protected] | [email protected] | | ||
| ---------------------------------------- | --------------------- | --------------- | -------------- | | ||
| **Total size** (minified + gzipped) | 9.82 kB | 14.6 kB | 9.88 kB | | ||
| **Example size** (minified + gzipped) | 4.98 kB | 12.9 kB | 1.22 B | | ||
| **Nested object parsing** | 156,244 ops/ms | 1,304 ops/ms | 3,822 ops/ms | | ||
| **Create schema + parse once** | 56 ops/ms | 112 ops/ms | 2,475 ops/ms | | ||
| **Eval-free** | ❌ | ✅ | ✅ | | ||
| **Codegen-free** (Doesn't need compiler) | ✅ | ✅ | ✅ | | ||
| **Ecosystem** | ⭐️ | ⭐️⭐️⭐️⭐️⭐️ | ⭐️⭐️⭐️ | |
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
5943e49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
Parse string
818550561
ops/sec (±0.11%
)818372259
ops/sec (±0.13%
)1.00
Serialize string
819984051
ops/sec (±0.08%
)819110535
ops/sec (±0.05%
)1.00
Advanced object schema factory
459876
ops/sec (±0.52%
)449156
ops/sec (±0.56%
)0.98
Parse advanced object
51294469
ops/sec (±0.68%
)45100200
ops/sec (±0.16%
)0.88
Assert advanced object
172961466
ops/sec (±0.21%
)Create and parse advanced object
92136
ops/sec (±0.18%
)35041
ops/sec (±1.18%
)0.38
Parse advanced strict object
24268119
ops/sec (±0.20%
)22748126
ops/sec (±0.24%
)0.94
Assert advanced strict object
28481628
ops/sec (±0.74%
)Serialize advanced object
66198466
ops/sec (±4.18%
)806595235
ops/sec (±0.11%
)12.18
This comment was automatically generated by workflow using github-action-benchmark.
5943e49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.50
.Serialize advanced object
66198466
ops/sec (±4.18%
)806595235
ops/sec (±0.11%
)12.18
This comment was automatically generated by workflow using github-action-benchmark.