xref: /OK3568_Linux_fs/external/security/librkcrypto/perf_reports/ReadMe_EN.md (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1## Throughput test method
2
3### Set the CPU to work at the highest frequency
4
5-    Set to userspace mode          : `echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor`
6-    Check mode set succeed         : `cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor`
7-    List all available frequencies : `cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies`
8-    Set highest frequency          : `echo 408000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed`
9-    Check frequency                : `cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq`
10
11### Set the CPU to work at the highest frequency(Some platforms cannot be set).
12
13-    Set to userspace mode          : `echo userspace > /sys/class/devfreq/dmc/governor`
14-    Check mode set succeed         : `cat /sys/class/devfreq/dmc/governor`
15-    List all available frequencies : `cat /sys/class/devfreq/dmc/available_frequencies`
16-    Set highest frequency          : `echo 528000000 > /sys/class/devfreq/dmc/userspace/set_freq`
17-    Check frequency                : `cat /sys/class/devfreq/dmc/cur_freq`
18
19### Run `librkcrypto_test -t` to perform the throughput test.
20
21### Test principle: Perform encryption or decryption operations on 1M Byte data continuously and calculate the amount of data processed in 1 second.