2
0

speed.pod 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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<algorithm...>]
  16. =head1 DESCRIPTION
  17. This command is used to test the performance of cryptographic algorithms.
  18. To see the list of supported algorithms, use the I<list --digest-commands>
  19. or I<list --cipher-commands> command. The global CSPRNG is denoted by
  20. the I<rand> algorithm name.
  21. =head1 OPTIONS
  22. =over 4
  23. =item B<-help>
  24. Print out a usage message.
  25. =item B<-engine id>
  26. Specifying an engine (by its unique B<id> string) will cause B<speed>
  27. to attempt to obtain a functional reference to the specified engine,
  28. thus initialising it if needed. The engine will then be set as the default
  29. for all available algorithms.
  30. =item B<-elapsed>
  31. Measure time in real time instead of CPU time. It can be useful when testing
  32. speed of hardware engines.
  33. =item B<-evp algo>
  34. Use the specified cipher or message digest algorithm via the EVP interface.
  35. =item B<-decrypt>
  36. Time the decryption instead of encryption. Affects only the EVP testing.
  37. =item B<-rand file...>
  38. A file or files containing random data used to seed the random number
  39. generator.
  40. Multiple files can be specified separated by an OS-dependent character.
  41. The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
  42. all others.
  43. =item [B<-writerand file>]
  44. Writes random data to the specified I<file> upon exit.
  45. This can be used with a subsequent B<-rand> flag.
  46. =item B<-primes num>
  47. Generate a B<num>-prime RSA key and use it to run the benchmarks. This option
  48. is only effective if RSA algorithm is specified to test.
  49. =item B<-seconds num>
  50. Run benchmarks for B<num> seconds.
  51. =item B<-bytes num>
  52. Run benchmarks on B<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
  53. =item B<[zero or more test algorithms]>
  54. If any options are given, B<speed> tests those algorithms, otherwise all of
  55. the above are tested.
  56. =back
  57. =head1 COPYRIGHT
  58. Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
  59. Licensed under the OpenSSL license (the "License"). You may not use
  60. this file except in compliance with the License. You can obtain a copy
  61. in the file LICENSE in the source distribution or at
  62. L<https://www.openssl.org/source/license.html>.
  63. =cut