speed.html 3.9 KB

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