xref: /OK3568_Linux_fs/external/security/librkcrypto/perf_reports/RK3588_perf.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1console:/data # cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
2userspace
3console:/data # cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
41800000
5console:/data # cat /sys/class/devfreq/dmc/governor
6userspace
7console:/data # cat /sys/class/devfreq/dmc/cur_freq
82112000000
9console:/data #
10console:/data #
11console:/data # cat /sys/kernel/debug/clk/clk_summary | grep crypto
12 scmi_crypto_p                        0        0        0   350000000          0     0  50000
13 scmi_crypto_c                        0        0        0   350000000          0     0  50000
14 scmi_crypto_r                        0        0        0   175000000          0     0  50000
15
16console:/data #
17console:/data #
18console:/data # librkcrypto_test -t
19dma_fd: otpkey  [AES-256]       ECB     ENCRYPT 560MB/s.
20dma_fd: otpkey  [AES-256]       ECB     DECRYPT 560MB/s.
21dma_fd: otpkey  [AES-256]       CBC     ENCRYPT 288MB/s.
22dma_fd: otpkey  [AES-256]       CBC     DECRYPT 560MB/s.
23dma_fd: otpkey  [AES-256]       CTR     ENCRYPT 560MB/s.
24dma_fd: otpkey  [AES-256]       CTR     DECRYPT 560MB/s.
25dma_fd: otpkey  [SM4-128]       ECB     ENCRYPT 483MB/s.
26dma_fd: otpkey  [SM4-128]       ECB     DECRYPT 483MB/s.
27dma_fd: otpkey  [SM4-128]       CBC     ENCRYPT 146MB/s.
28dma_fd: otpkey  [SM4-128]       CBC     DECRYPT 483MB/s.
29dma_fd: otpkey  [SM4-128]       CTR     ENCRYPT 483MB/s.
30dma_fd: otpkey  [SM4-128]       CTR     DECRYPT 483MB/s.
31dma_fd: test otp_key throughput SUCCESS.
32
33virt:   otpkey  [AES-256]       ECB     ENCRYPT 410MB/s.
34virt:   otpkey  [AES-256]       ECB     DECRYPT 411MB/s.
35virt:   otpkey  [AES-256]       CBC     ENCRYPT 242MB/s.
36virt:   otpkey  [AES-256]       CBC     DECRYPT 411MB/s.
37virt:   otpkey  [AES-256]       CTR     ENCRYPT 411MB/s.
38virt:   otpkey  [AES-256]       CTR     DECRYPT 411MB/s.
39virt:   otpkey  [SM4-128]       ECB     ENCRYPT 368MB/s.
40virt:   otpkey  [SM4-128]       ECB     DECRYPT 368MB/s.
41virt:   otpkey  [SM4-128]       CBC     ENCRYPT 133MB/s.
42virt:   otpkey  [SM4-128]       CBC     DECRYPT 368MB/s.
43virt:   otpkey  [SM4-128]       CTR     ENCRYPT 368MB/s.
44virt:   otpkey  [SM4-128]       CTR     DECRYPT 368MB/s.
45virt:   test otp_key throughput SUCCESS.
46
47dma_fd: [DES-64]        ECB     ENCRYPT 500MB/s.
48dma_fd: [DES-64]        ECB     DECRYPT 500MB/s.
49dma_fd: [DES-64]        CBC     ENCRYPT 137MB/s.
50dma_fd: [DES-64]        CBC     DECRYPT 500MB/s.
51dma_fd: [TDES-192]      ECB     ENCRYPT 187MB/s.
52dma_fd: [TDES-192]      ECB     DECRYPT 187MB/s.
53dma_fd: [TDES-192]      CBC     ENCRYPT 49MB/s.
54dma_fd: [TDES-192]      CBC     DECRYPT 187MB/s.
55dma_fd: [AES-256]       ECB     ENCRYPT 716MB/s.
56dma_fd: [AES-256]       ECB     DECRYPT 716MB/s.
57dma_fd: [AES-256]       CBC     ENCRYPT 311MB/s.
58dma_fd: [AES-256]       CBC     DECRYPT 716MB/s.
59dma_fd: [AES-256]       CTS     N/A
60dma_fd: [AES-256]       CTS     N/A
61dma_fd: [AES-256]       CTR     ENCRYPT 593MB/s.
62dma_fd: [AES-256]       CTR     DECRYPT 593MB/s.
63dma_fd: [SM4-128]       ECB     ENCRYPT 550MB/s.
64dma_fd: [SM4-128]       ECB     DECRYPT 551MB/s.
65dma_fd: [SM4-128]       CBC     ENCRYPT 152MB/s.
66dma_fd: [SM4-128]       CBC     DECRYPT 550MB/s.
67dma_fd: [SM4-128]       CTS     N/A
68dma_fd: [SM4-128]       CTS     N/A
69dma_fd: [SM4-128]       CTR     ENCRYPT 476MB/s.
70dma_fd: [SM4-128]       CTR     DECRYPT 476MB/s.
71dma_fd: test cipher throughput SUCCESS.
72
73virt:   [DES-64]        ECB     ENCRYPT 248MB/s.
74virt:   [DES-64]        ECB     DECRYPT 258MB/s.
75virt:   [DES-64]        CBC     ENCRYPT 103MB/s.
76virt:   [DES-64]        CBC     DECRYPT 280MB/s.
77virt:   [TDES-192]      ECB     ENCRYPT 130MB/s.
78virt:   [TDES-192]      ECB     DECRYPT 130MB/s.
79virt:   [TDES-192]      CBC     ENCRYPT 44MB/s.
80virt:   [TDES-192]      CBC     DECRYPT 129MB/s.
81virt:   [AES-256]       ECB     ENCRYPT 285MB/s.
82virt:   [AES-256]       ECB     DECRYPT 277MB/s.
83virt:   [AES-256]       CBC     ENCRYPT 180MB/s.
84virt:   [AES-256]       CBC     DECRYPT 278MB/s.
85virt:   [AES-256]       CTS     N/A
86virt:   [AES-256]       CTS     N/A
87virt:   [AES-256]       CTR     ENCRYPT 260MB/s.
88virt:   [AES-256]       CTR     DECRYPT 256MB/s.
89virt:   [SM4-128]       ECB     ENCRYPT 251MB/s.
90virt:   [SM4-128]       ECB     DECRYPT 260MB/s.
91virt:   [SM4-128]       CBC     ENCRYPT 112MB/s.
92virt:   [SM4-128]       CBC     DECRYPT 277MB/s.
93virt:   [SM4-128]       CTS     N/A
94virt:   [SM4-128]       CTS     N/A
95virt:   [SM4-128]       CTR     ENCRYPT 240MB/s.
96virt:   [SM4-128]       CTR     DECRYPT 240MB/s.
97virt:   test cipher throughput SUCCESS.
98
99dma_fd: [AES-256]       GCM     ENCRYPT 310MB/s.
100dma_fd: [AES-256]       GCM     DECRYPT 310MB/s.
101dma_fd: [SM4-128]       GCM     ENCRYPT 152MB/s.
102dma_fd: [SM4-128]       GCM     DECRYPT 152MB/s.
103dma_fd: test aead throughput SUCCESS.
104
105virt:   [AES-256]       GCM     ENCRYPT 1223MB/s.
106virt:   [AES-256]       GCM     DECRYPT 1252MB/s.
107virt:   [SM4-128]       GCM     ENCRYPT 33MB/s.
108virt:   [SM4-128]       GCM     DECRYPT 31MB/s.
109virt:   test aead throughput SUCCESS.
110
111virt:   [         MD5]  250MB/s.
112virt:   [        SHA1]  173MB/s.
113virt:   [      SHA256]  197MB/s.
114virt:   [      SHA224]  197MB/s.
115virt:   [      SHA512]  259MB/s.
116virt:   [      SHA384]  274MB/s.
117virt:   [  SHA512_224]  N/A
118virt:   [  SHA512_256]  N/A
119virt:   [         SM3]  198MB/s.
120virt:   test hash throughput SUCCESS.
121
122dma_fd: [         MD5]  316MB/s.
123dma_fd: [        SHA1]  256MB/s.
124dma_fd: [      SHA256]  316MB/s.
125dma_fd: [      SHA224]  316MB/s.
126dma_fd: [      SHA512]  493MB/s.
127dma_fd: [      SHA384]  494MB/s.
128dma_fd: [  SHA512_224]  N/A
129dma_fd: [  SHA512_256]  N/A
130dma_fd: [         SM3]  316MB/s.
131dma_fd: test hash throughput SUCCESS.
132
133virt:   [    HMAC_MD5]  199MB/s.
134virt:   [   HMAC_SHA1]  172MB/s.
135virt:   [ HMAC_SHA256]  197MB/s.
136virt:   [ HMAC_SHA512]  269MB/s.
137virt:   [    HMAC_SM3]  197MB/s.
138virt:   test hmac throughput SUCCESS.
139
140dma_fd: [    HMAC_MD5]  316MB/s.
141dma_fd: [   HMAC_SHA1]  256MB/s.
142dma_fd: [ HMAC_SHA256]  316MB/s.
143dma_fd: [ HMAC_SHA512]  494MB/s.
144dma_fd: [    HMAC_SM3]  316MB/s.
145dma_fd: test hmac throughput SUCCESS.
146
147virt:   [RSA-1024]      PRIV    ENCRYPT 26ms.
148virt:   [RSA-1024]      PUB     DECRYPT 6ms.
149virt:   [RSA-2048]      PRIV    ENCRYPT 105ms.
150virt:   [RSA-2048]      PUB     DECRYPT 15ms.
151virt:   [RSA-3072]      PRIV    ENCRYPT 309ms.
152virt:   [RSA-3072]      PUB     DECRYPT 44ms.
153virt:   [RSA-4096]      PRIV    ENCRYPT 679ms.
154virt:   [RSA-4096]      PUB     DECRYPT 81ms.
155test rsa throughput SUCCESS.
156
157Test throughput SUCCESS.
158
159######## Test done ########
160console:/data #
161