IntegrityChecker java (icj): 'sha' command
The sha command is a performance evaluation command that may be used if curious as to the speed of your computer. It plays no role in safeguarding your data.
Command line usage
icj sha
--size <size>
Specifies the amount of data to hash for testing for each iteration (128MB maximum).
--repeat <num>
Specifies how many times to repeat the test.
--threads <num>
Number of threads to use.
-sha <SHA-512|SHA1>
Selects the hashing algorithm to use. Fairly pointless since SHA-512 is all icj uses (except for compatibility).
Examples
Lines starting with "#" are comments.
# Run sha hashing speed test
icj sha
icj sha --sha SHA-512
icj sha --size 1M
Example output
diglloyd-MacPro:MPG lloyd$ icj sha
# icj version 1.3b6 @ 2020-01-20 11:12
# Copyright 2018-2020 DIGLLOYD INC. All Rights Reserved
# Use of this software requires a license.https://macperformanceguide.com/Software-License.html
# Mon Jan 20 15:50:34 PST 2020
# Available algorithms: SHA3-224, SHA3-384, SHA3-256, SHA-512, SHA, SHA-512/256, SHA3-512, SHA-384, SHA-256, SHA-512/224, SHA-224, MD5, MD2
# Params: buffer size 1.00 MiB iterations 1250 repeat 10 times...
Running for: SHA-512
SHA-512: 590 MiB/sec for 1250 iterations over 1.00 MiB lasting 2118ms total data 1250 MiB
SHA-512: 581 MiB/sec for 1250 iterations over 1.00 MiB lasting 2152ms total data 1250 MiB
SHA-512: 587 MiB/sec for 1250 iterations over 1.00 MiB lasting 2131ms total data 1250 MiB
SHA-512: 579 MiB/sec for 1250 iterations over 1.00 MiB lasting 2158ms total data 1250 MiB
SHA-512: 618 MiB/sec for 1250 iterations over 1.00 MiB lasting 2024ms total data 1250 MiB
SHA-512: 628 MiB/sec for 1250 iterations over 1.00 MiB lasting 1991ms total data 1250 MiB
SHA-512: 626 MiB/sec for 1250 iterations over 1.00 MiB lasting 1998ms total data 1250 MiB
SHA-512: 639 MiB/sec for 1250 iterations over 1.00 MiB lasting 1955ms total data 1250 MiB
SHA-512: 631 MiB/sec for 1250 iterations over 1.00 MiB lasting 1982ms total data 1250 MiB
SHA-512: 633 MiB/sec for 1250 iterations over 1.00 MiB lasting 1975ms total data 1250 MiB
Running for: SHA1
SHA1: 333 MiB/sec for 1250 iterations over 1.00 MiB lasting 3752ms total data 1250 MiB
SHA1: 330 MiB/sec for 1250 iterations over 1.00 MiB lasting 3789ms total data 1250 MiB
SHA1: 328 MiB/sec for 1250 iterations over 1.00 MiB lasting 3812ms total data 1250 MiB
SHA1: 328 MiB/sec for 1250 iterations over 1.00 MiB lasting 3812ms total data 1250 MiB
SHA1: 328 MiB/sec for 1250 iterations over 1.00 MiB lasting 3809ms total data 1250 MiB
SHA1: 329 MiB/sec for 1250 iterations over 1.00 MiB lasting 3796ms total data 1250 MiB
SHA1: 330 MiB/sec for 1250 iterations over 1.00 MiB lasting 3792ms total data 1250 MiB
SHA1: 328 MiB/sec for 1250 iterations over 1.00 MiB lasting 3811ms total data 1250 MiB
SHA1: 329 MiB/sec for 1250 iterations over 1.00 MiB lasting 3804ms total data 1250 MiB
SHA1: 330 MiB/sec for 1250 iterations over 1.00 MiB lasting 3788ms total data 1250 MiB
icj done at Mon Jan 20 15:51:33 PST 2020 runtime 00:58.5
Copyright © 2022 diglloyd Inc, all rights reserved