openssl-speed.pod.in 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. =pod
  2. {- OpenSSL::safe::output_do_not_edit_headers(); -}
  3. =head1 NAME
  4. openssl-speed - test library performance
  5. =head1 SYNOPSIS
  6. B<openssl speed>
  7. [B<-help>]
  8. [B<-elapsed>]
  9. [B<-evp> I<algo>]
  10. [B<-hmac> I<algo>]
  11. [B<-cmac> I<algo>]
  12. [B<-mb>]
  13. [B<-aead>]
  14. [B<-multi> I<num>]
  15. [B<-async_jobs> I<num>]
  16. [B<-misalign> I<num>]
  17. [B<-decrypt>]
  18. [B<-primes> I<num>]
  19. [B<-seconds> I<num>]
  20. [B<-bytes> I<num>]
  21. [B<-mr>]
  22. {- $OpenSSL::safe::opt_r_synopsis -}
  23. {- $OpenSSL::safe::opt_engine_synopsis -}
  24. {- $OpenSSL::safe::opt_provider_synopsis -}
  25. [I<algorithm> ...]
  26. =for openssl ifdef hmac cmac multi async_jobs engine
  27. =head1 DESCRIPTION
  28. This command is used to test the performance of cryptographic algorithms.
  29. To see the list of supported algorithms, use C<openssl list -digest-commands>
  30. or C<openssl list -cipher-commands> command. The global CSPRNG is denoted by
  31. the B<rand> algorithm name.
  32. =head1 OPTIONS
  33. =over 4
  34. =item B<-help>
  35. Print out a usage message.
  36. =item B<-elapsed>
  37. When calculating operations- or bytes-per-second, use wall-clock time
  38. instead of CPU user time as divisor. It can be useful when testing speed
  39. of hardware engines.
  40. =item B<-evp> I<algo>
  41. Use the specified cipher or message digest algorithm via the EVP interface.
  42. If I<algo> is an AEAD cipher, then you can pass B<-aead> to benchmark a
  43. TLS-like sequence. And if I<algo> is a multi-buffer capable cipher, e.g.
  44. aes-128-cbc-hmac-sha1, then B<-mb> will time multi-buffer operation.
  45. =item B<-multi> I<num>
  46. Run multiple operations in parallel.
  47. =item B<-async_jobs> I<num>
  48. Enable async mode and start specified number of jobs.
  49. =item B<-misalign> I<num>
  50. Misalign the buffers by the specified number of bytes.
  51. =item B<-hmac> I<digest>
  52. Time the HMAC algorithm using the specified message digest.
  53. =item B<-cmac> I<cipher>
  54. Time the CMAC algorithm using the specified cipher e.g.
  55. C<openssl speed -cmac aes128>.
  56. =item B<-decrypt>
  57. Time the decryption instead of encryption. Affects only the EVP testing.
  58. =item B<-primes> I<num>
  59. Generate a I<num>-prime RSA key and use it to run the benchmarks. This option
  60. is only effective if RSA algorithm is specified to test.
  61. =item B<-seconds> I<num>
  62. Run benchmarks for I<num> seconds.
  63. =item B<-bytes> I<num>
  64. Run benchmarks on I<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
  65. =item B<-mr>
  66. Produce the summary in a mechanical, machine-readable, format.
  67. {- $OpenSSL::safe::opt_r_item -}
  68. {- $OpenSSL::safe::opt_engine_item -}
  69. {- $OpenSSL::safe::opt_provider_item -}
  70. =item I<algorithm> ...
  71. If any I<algorithm> is given, then those algorithms are tested, otherwise a
  72. pre-compiled grand selection is tested.
  73. =back
  74. =head1 HISTORY
  75. The B<-engine> option was deprecated in OpenSSL 3.0.
  76. =head1 COPYRIGHT
  77. Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
  78. Licensed under the Apache License 2.0 (the "License"). You may not use
  79. this file except in compliance with the License. You can obtain a copy
  80. in the file LICENSE in the source distribution or at
  81. L<https://www.openssl.org/source/license.html>.
  82. =cut