android13/hardware/rockchip/librkcrypto/perf_reports
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
RK3528_perf.txt initial 2024-06-22 20:45:49 +08:00
RK3562_perf.txt initial 2024-06-22 20:45:49 +08:00
RK3566_perf.txt initial 2024-06-22 20:45:49 +08:00
RK3588_perf.txt initial 2024-06-22 20:45:49 +08:00
RV1106_perf.txt initial 2024-06-22 20:45:49 +08:00
ReadMe_CN.md initial 2024-06-22 20:45:49 +08:00
ReadMe_EN.md initial 2024-06-22 20:45:49 +08:00

ReadMe_EN.md

Throughput test method

Set the CPU to work at the highest frequency

  • Set to userspace mode : echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
  • Check mode set succeed : cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
  • List all available frequencies : cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
  • Set highest frequency : echo 408000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
  • Check frequency : cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq

Set the CPU to work at the highest frequency(Some platforms cannot be set).

  • Set to userspace mode : echo userspace > /sys/class/devfreq/dmc/governor
  • Check mode set succeed : cat /sys/class/devfreq/dmc/governor
  • List all available frequencies : cat /sys/class/devfreq/dmc/available_frequencies
  • Set highest frequency : echo 528000000 > /sys/class/devfreq/dmc/userspace/set_freq
  • Check frequency : cat /sys/class/devfreq/dmc/cur_freq

Run librkcrypto_test -t to perform the throughput test.

Test principle: Perform encryption or decryption operations on 1M Byte data continuously and calculate the amount of data processed in 1 second.