The cryptoperf tool measures the execution speed of the kernel crypto API. The measurements are obtained by performing a crypto operation as often as possible within a given time frame.
The cryptoperf code base can be extended to cover additional ciphers by simply adding the kernel crypto API cra_name to the source code.
See the README file enclosed in the source code for details on how to use the code.
TODO file enclosed in the source code for details on shortcomings.
The following source code contains the implementation of the Cryptoperf tool.