Skip to content

Latest commit

 

History

History

benchmark

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

spectypes-benchmark@2.1.11 bench node ./build/index.js

Benchmarking with benchmark.js

object with constraints:
ajv@8.11.0 x 3,419,069 ops/sec ±1.09% (94 runs sampled)
spectypes@2.1.11 x 4,271,385 ops/sec ±1.19% (89 runs sampled)
Fastest is spectypes

nested object:
ajv@8.11.0 x 8,827,259 ops/sec ±1.34% (88 runs sampled)
spectypes@2.1.11 x 11,111,487 ops/sec ±0.77% (94 runs sampled)
Fastest is spectypes

array of unions:
ajv@8.11.0 x 152,251 ops/sec ±2.16% (90 runs sampled)
spectypes@2.1.11 x 514,716 ops/sec ±1.07% (90 runs sampled)
Fastest is spectypes