openssl-speed.pod.in 3.0 KB

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