How To
You can easily check if an algorithm is fast enough on your platform. This project has tests for all operations with (almost) all algorithms.
To run those tests, you must install the library with all dev dependencies. When done, just run the following command:
The previous command will test ALL algorithms and may take more than 7 hours.
Algorithm Selection
We recommend you to run tests only for the algorithm(s) you want to use. Just run the following command:
The value of GROUP should be one of the following values:
All signature algorithms: JWS
All HMAC algorithms: hmac
Test all HMAC algorithms:
Test the RSA1_5 algorithm:
Benchmark Details
The result of the following command will only give you partial result. For example:
The main information is that the best algorithm takes only 31.275 µs... but you may need more information.
Just run the following command:
*The value of the --uuid option is given at the end of the previous command. You can also use latest.
A report.md file will be created. It contains a detailed report (Markdown format). Example:
If it is not enough for you, you can get a full report with the following command: