0.1.1 • Published 3 years ago
bipf-neon v0.1.1
bipf-rs
Rust port of https://github.com/ssbc/bipf
Benchmark (Rust vs JS)
Rust
Benchmark is as described in https://npm.io/package/@staltz/bipf
operation ops/ms improvement to JS
binary.encode 250 (x2.5)
serde_json.stringify 650
binary.decode 450 (x2)
serde_json.parse 316
binary.seek 7700 (x4)
JS
operation, ops/ms
binary.encode 96.15384615384616
JSON.stringify 555.5555555555555
binary.decode 208.33333333333334
JSON.parse 476.1904761904762
JSON.parse(buffer) 416.6666666666667
JSON.stringify(JSON.parse()) 250
binary.seek(string) 714.2857142857143
binary.seek2(encoded) 1250
binary.seek(buffer) 2000
binary.seekPath(encoded) 769.2307692307693
binary.seekPath(compiled) 1666.6666666666667
binary.compare() 1666.6666666666667
0.1.1
3 years ago