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

Add feature to print checksum or perform integrity check #49

Open
qsx-dev opened this issue Jul 28, 2024 · 1 comment
Open

Add feature to print checksum or perform integrity check #49

qsx-dev opened this issue Jul 28, 2024 · 1 comment

Comments

@qsx-dev
Copy link

qsx-dev commented Jul 28, 2024

It would be great to have a feature that prints checksum (SHA256/SHA512) or performs some integrity check before compression and after decompression using a command-line parameter option. Sometimes hardware issues (like bad memory, overclock and more recently the oxidation issue with Intel Core processors of 13th and 14th generations) will result in silent data corruption even when a benchmark completes without errors.

@qsx-dev
Copy link
Author

qsx-dev commented Jul 28, 2024

#turbobench test.tar -ebzip2 -i
     5497177    15.1       9.51      40.61   bzip2            test.tar
TurboBench:  - Sun Jul 28 09:28:51 2024

      C Size  ratio%     C MB/s     D MB/s   SCORE      Name            File
     5497177    15.1       9.70      40.64      11.03   bzip2           test.tar

Compression and decompression integrity check passed!

In verbose it would print the checksum:

#turbobench test.tar -ebzip2 -i -v3
Input checksum before compression is: bb3b0b45e73647a18894f218e864c8b421a13c97ff880a5c89b315ad2220dfe9

     5497177    15.1       9.51      40.61   bzip2            test.tar
TurboBench:  - Sun Jul 28 09:28:51 2024

      C Size  ratio%     C MB/s     D MB/s   SCORE      Name            File
     5497177    15.1       9.70      40.64      11.03   bzip2           test.tar

Output checksum after decompression is: bb3b0b45e73647a18894f218e864c8b421a13c97ff880a5c89b315ad2220dfe9

Compression and decompression integrity check passed!

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

No branches or pull requests

1 participant