To run
yarn start [suite-name]
entity
- benchmarks various entity-specific operationscore
- benchmarks entire operations using Controllernormalizr
- benchmarks just normalize/denormalizeold-normalizr
(runs equivalent benchmarks using the normalizr package)
No argument will run normalizr
+ core
Performance compared to normalizr package (higher is better):
no cache | with cache | |
---|---|---|
normalize (long) | 113% | 113% |
denormalize (long) | 158% | 1,262% |
denormalize (short) | 676% | 2,367% |
[Comparison done on a Ryzen 7950x; Ubuntu; Node 20.10.0]
Not only is denormalize faster, but it is more feature-rich as well.