bipf-rs

Crates.iobipf-rs
lib.rsbipf-rs
version0.1.1
sourcesrc
created_at2021-11-14 22:13:35.983906
updated_at2021-11-15 23:01:25.493773
descriptionA Rust port of https://github.com/ssbc/bipf
homepagehttps://github.com/jerive/bipf-rs
repositoryhttps://github.com/jerive/bipf-rs.git
max_upload_size
id481879
size17,079
Jérôme Viveret (jerive)

documentation

README

bipf-rs

Rust

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 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

Commit count: 38

cargo fmt