Skip to content

Commit b027692

Browse files
committed
update benchmark result
1 parent 5f1a770 commit b027692

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
* unit tests & 100% cover
2121

2222
# How fast?
23-
Very fast! 3 million validation/sec (on Intel i7-4770K, Node.JS: 6.10.0)
23+
Very fast! ~4 million validation/sec (on Intel i7-4770K, Node.JS: 6.10.0)
2424
```
25-
√ validate with pre-compiled schema x 3,052,280 ops/sec ±0.82% (93 runs sampled)
25+
√ validate with pre-compiled schema 3,986,017 rps
2626
```
2727

2828
Compared to other popular libraries:
2929

30-
[![Result](https://cloud.highcharts.com/images/yqowupa/4/800.png)](https://github.com/icebob/validator-benchmark#result)
30+
[![Result](https://user-images.githubusercontent.com/306521/41873673-f8e5a86e-78c5-11e8-8e84-364a11308536.png)](https://github.com/icebob/validator-benchmark#result)
3131
> 100x faster than Joi.
3232
3333
**Would you like to test it?**

benchmark/suites/simple.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,24 @@ bench.run();
6666
/*
6767
6868
===============================
69-
fastest-validator benchmark
69+
Fastest validator benchmark
7070
===============================
7171
7272
Platform info:
7373
==============
7474
Windows_NT 6.1.7601 x64
75-
Node.JS: 6.10.0
76-
V8: 5.1.281.93
75+
Node.JS: 8.11.0
76+
V8: 6.2.414.50
7777
Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz × 8
7878
7979
Suite: Simple object
80-
√ compile & validate x 249,659 ops/sec ±0.17% (95 runs sampled)
81-
√ validate with pre-compiled schema x 3,111,667 ops/sec ±0.92% (90 runs sampled)
82-
√ validate with wrong obj x 767,201 ops/sec ±0.91% (92 runs sampled)
80+
√ compile & validate 1,115,239 rps
81+
√ validate with pre-compiled schema 3,986,017 rps
82+
√ validate with wrong obj 704,992 rps
8383
84-
compile & validate -91.98% (249,659 ops/sec)
85-
validate with pre-compiled schema 0.00% (3,111,667 ops/sec)
86-
validate with wrong obj -75.34% (767,201 ops/sec)
84+
compile & validate (#) 0% (1,115,239 rps) (avg: 896ns)
85+
validate with pre-compiled schema +257.41% (3,986,017 rps) (avg: 250ns)
86+
validate with wrong obj -36.79% (704,992 rps) (avg: 1μs)
8787
-----------------------------------------------------------------------
8888
8989
*/

0 commit comments

Comments
 (0)