speed.pod 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. =pod
  2. =head1 NAME
  3. openssl-speed,
  4. speed - test library performance
  5. =head1 SYNOPSIS
  6. B<openssl speed>
  7. [B<-help>]
  8. [B<-engine id>]
  9. [B<-elapsed>]
  10. [B<-evp algo>]
  11. [B<-decrypt>]
  12. [B<-rand file...>]
  13. [B<-writerand file>]
  14. [B<-primes num>]
  15. [B<-seconds num>]
  16. [B<-bytes num>]
  17. [B<algorithm...>]
  18. =head1 DESCRIPTION
  19. This command is used to test the performance of cryptographic algorithms.
  20. To see the list of supported algorithms, use the I<list --digest-commands>
  21. or I<list --cipher-commands> command. The global CSPRNG is denoted by
  22. the I<rand> algorithm name.
  23. =head1 OPTIONS
  24. =over 4
  25. =item B<-help>
  26. Print out a usage message.
  27. =item B<-engine id>
  28. Specifying an engine (by its unique B<id> string) will cause B<speed>
  29. to attempt to obtain a functional reference to the specified engine,
  30. thus initialising it if needed. The engine will then be set as the default
  31. for all available algorithms.
  32. =item B<-elapsed>
  33. When calculating operations- or bytes-per-second, use wall-clock time
  34. instead of CPU user time as divisor. It can be useful when testing speed
  35. of hardware engines.
  36. =item B<-evp algo>
  37. Use the specified cipher or message digest algorithm via the EVP interface.
  38. If B<algo> is an AEAD cipher, then you can pass <-aead> to benchmark a
  39. TLS-like sequence. And if B<algo> is a multi-buffer capable cipher, e.g.
  40. aes-128-cbc-hmac-sha1, then B<-mb> will time multi-buffer operation.
  41. =item B<-decrypt>
  42. Time the decryption instead of encryption. Affects only the EVP testing.
  43. =item B<-rand file...>
  44. A file or files containing random data used to seed the random number
  45. generator.
  46. Multiple files can be specified separated by an OS-dependent character.
  47. The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
  48. all others.
  49. =item [B<-writerand file>]
  50. Writes random data to the specified I<file> upon exit.
  51. This can be used with a subsequent B<-rand> flag.
  52. =item B<-primes num>
  53. Generate a B<num>-prime RSA key and use it to run the benchmarks. This option
  54. is only effective if RSA algorithm is specified to test.
  55. =item B<-seconds num>
  56. Run benchmarks for B<num> seconds.
  57. =item B<-bytes num>
  58. Run benchmarks on B<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
  59. =item B<[zero or more test algorithms]>
  60. If any options are given, B<speed> tests those algorithms, otherwise a
  61. pre-compiled grand selection is tested.
  62. =back
  63. =head1 COPYRIGHT
  64. Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
  65. Licensed under the OpenSSL license (the "License"). You may not use
  66. this file except in compliance with the License. You can obtain a copy
  67. in the file LICENSE in the source distribution or at
  68. L<https://www.openssl.org/source/license.html>.
  69. =cut