Sunday, December 04, 2022

js yaml parse speed: js-yaml.js vs yaml.js

 Benchmark: js-yaml vs yaml-js - MeasureThat.net

<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.12.0/js-yaml.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/yamljs/0.3.0/yaml.min.js"></script>

yaml,jsyaml-js x 89,271 ops/sec ±1.59% (60 runs sampled)
js-yamljs-yaml x 147,584 ops/sec ±1.28% (63 runs sampled) FASTER!

yaml - npm search

yaml - npm => 26M downloads

js-yaml - npm => 58M downloads (winner, for now)

js-yaml vs yamljs | npm trends

nodeca/js-yaml: JavaScript YAML parser and dumper. Very fast.

No comments: