Crates.io | bipf-rs |
lib.rs | bipf-rs |
version | 0.1.1 |
source | src |
created_at | 2021-11-14 22:13:35.983906 |
updated_at | 2021-11-15 23:01:25.493773 |
description | A Rust port of https://github.com/ssbc/bipf |
homepage | https://github.com/jerive/bipf-rs |
repository | https://github.com/jerive/bipf-rs.git |
max_upload_size | |
id | 481879 |
size | 17,079 |
Rust port of https://github.com/ssbc/bipf
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 seek 7700 (x4)
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