Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up hexyl #73

Merged
merged 2 commits into from
Oct 8, 2019
Merged

Speed up hexyl #73

merged 2 commits into from
Oct 8, 2019

Conversation

sharkdp
Copy link
Owner

@sharkdp sharkdp commented Oct 8, 2019

this PR:

Command Mean [ms] Min [ms] Max [ms] Relative
hexyl data 588.3 ± 3.7 585.2 596.1 36.01
hexyl --color=never data 431.6 ± 7.0 425.2 447.5 26.42
hexdump -C data 16.3 ± 0.6 15.7 20.2 1.00
xxd data 706.3 ± 4.6 701.5 716.4 43.24

before:

Command Mean [s] Min [s] Max [s] Relative
hexyl data 1.031 ± 0.007 1.023 1.047 62.40
hexyl --color=never data 0.839 ± 0.005 0.834 0.848 50.79

benchmark command:

dd if=/dev/zero    bs=10M count=1 >  data
dd if=/dev/urandom bs=1k  count=1 >> data

hyperfine --warmup 5 \   
    'hexyl data' \
    'hexyl --color=never data' \
    'hexdump -C data' \
    'xxd data' \
    --export-markdown results.md

this means that we now clearly beat xxd (in this scenario) and can close #66 😄

@sharkdp sharkdp merged commit 9c46ced into master Oct 8, 2019
@sharkdp sharkdp deleted the speed-up-hexyl branch October 8, 2019 18:09
@sharkdp sharkdp mentioned this pull request Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Beat xxd
1 participant