Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.29 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.29 KB

hexdump-rs

(name tbd)

A rewrite of hexdump in Rust, which offers up to a 14x speedup

Test with 10M from /dev/random file: Speed test with hyperfine on dev-random

Test with a (semi) random 7.8M file: Speed test with hyperfine on test.mca

Test with a 1.1G file with all zeros: Speed test with hyperfine on zeros.bin

Test with a 8.5M file that can't be squeezed (all lines differ from the previous): Speed test with hyperfine on no-squeeze.bin

Compatibility

This is meant to be a drop-in replacement for hexdump -C since that seems to be the most common usage of hexdump. I'd like to implement the other features of hexdump in the future.

Testing

There is a small python script in the test-files/ directory that I used to generate some of the files mentioned above.

I then used hyperfine to compare the speed of the program using the following command (replacing [FILE] with the file to test).

hyperfine -m 100 '{command} -C {file}' -L command 'hexdump,./target/release/hexdump' -L file '[FILE]' --warmup 5

Contributions

Issues and PRs are welcome! If you have an idea to speed it up or would like to request a feature, file an issue/pr!