xref: /OK3568_Linux_fs/external/security/librkcrypto/perf_reports/RK3528_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
42016000
5console:/data # cat /sys/class/devfreq/dmc/governor
6cat: /sys/class/devfreq/dmc/governor: No such file or directory
71|console:/data # cat /sys/class/devfreq/dmc/cur_freq
8cat: /sys/class/devfreq/dmc/cur_freq: No such file or directory
91|console:/data #
101|console:/data #
111|console:/data # cat /sys/kernel/debug/clk/clk_summary | grep crypto
12 scmi_h_crypto                        0        0        0   198000000          0     0  50000
13 scmi_p_crypto                        0        0        0   297000000          0     0  50000
14 scmi_a_crypto                        0        0        0   297000000          0     0  50000
15 scmi_c_crypto                        0        0        0   297000000          0     0  50000
16console:/data #
17console:/data #
18console:/data # ./librkcrypto_test -t
19dma_fd: otpkey  [AES-256]       ECB     ENCRYPT 764MB/s.
20dma_fd: otpkey  [AES-256]       ECB     DECRYPT 773MB/s.
21dma_fd: otpkey  [AES-256]       CBC     ENCRYPT 252MB/s.
22dma_fd: otpkey  [AES-256]       CBC     DECRYPT 771MB/s.
23dma_fd: otpkey  [AES-256]       CTR     ENCRYPT 762MB/s.
24dma_fd: otpkey  [AES-256]       CTR     DECRYPT 772MB/s.
25dma_fd: otpkey  [SM4-128]       ECB     ENCRYPT 441MB/s.
26dma_fd: otpkey  [SM4-128]       ECB     DECRYPT 443MB/s.
27dma_fd: otpkey  [SM4-128]       CBC     ENCRYPT 125MB/s.
28dma_fd: otpkey  [SM4-128]       CBC     DECRYPT 443MB/s.
29dma_fd: otpkey  [SM4-128]       CTR     ENCRYPT 439MB/s.
30dma_fd: otpkey  [SM4-128]       CTR     DECRYPT 444MB/s.
31dma_fd: test otp_key throughput SUCCESS.
32
33virt:   otpkey  [AES-256]       ECB     ENCRYPT 276MB/s.
34virt:   otpkey  [AES-256]       ECB     DECRYPT 276MB/s.
35virt:   otpkey  [AES-256]       CBC     ENCRYPT 159MB/s.
36virt:   otpkey  [AES-256]       CBC     DECRYPT 276MB/s.
37virt:   otpkey  [AES-256]       CTR     ENCRYPT 275MB/s.
38virt:   otpkey  [AES-256]       CTR     DECRYPT 276MB/s.
39virt:   otpkey  [SM4-128]       ECB     ENCRYPT 217MB/s.
40virt:   otpkey  [SM4-128]       ECB     DECRYPT 218MB/s.
41virt:   otpkey  [SM4-128]       CBC     ENCRYPT 97MB/s.
42virt:   otpkey  [SM4-128]       CBC     DECRYPT 219MB/s.
43virt:   otpkey  [SM4-128]       CTR     ENCRYPT 218MB/s.
44virt:   otpkey  [SM4-128]       CTR     DECRYPT 218MB/s.
45virt:   test otp_key throughput SUCCESS.
46
47dma_fd: [DES-64]        ECB     ENCRYPT 436MB/s.
48dma_fd: [DES-64]        ECB     DECRYPT 433MB/s.
49dma_fd: [DES-64]        CBC     ENCRYPT 117MB/s.
50dma_fd: [DES-64]        CBC     DECRYPT 438MB/s.
51dma_fd: [TDES-192]      ECB     ENCRYPT 160MB/s.
52dma_fd: [TDES-192]      ECB     DECRYPT 160MB/s.
53dma_fd: [TDES-192]      CBC     ENCRYPT 41MB/s.
54dma_fd: [TDES-192]      CBC     DECRYPT 160MB/s.
55dma_fd: [AES-256]       ECB     ENCRYPT 904MB/s.
56dma_fd: [AES-256]       ECB     DECRYPT 909MB/s.
57dma_fd: [AES-256]       CBC     ENCRYPT 268MB/s.
58dma_fd: [AES-256]       CBC     DECRYPT 911MB/s.
59dma_fd: [AES-256]       CTS     N/A
60dma_fd: [AES-256]       CTS     N/A
61dma_fd: [AES-256]       CTR     ENCRYPT 703MB/s.
62dma_fd: [AES-256]       CTR     DECRYPT 705MB/s.
63dma_fd: [SM4-128]       ECB     ENCRYPT 486MB/s.
64dma_fd: [SM4-128]       ECB     DECRYPT 488MB/s.
65dma_fd: [SM4-128]       CBC     ENCRYPT 130MB/s.
66dma_fd: [SM4-128]       CBC     DECRYPT 487MB/s.
67dma_fd: [SM4-128]       CTS     N/A
68dma_fd: [SM4-128]       CTS     N/A
69dma_fd: [SM4-128]       CTR     ENCRYPT 419MB/s.
70dma_fd: [SM4-128]       CTR     DECRYPT 421MB/s.
71dma_fd: test cipher throughput SUCCESS.
72
73virt:   [DES-64]        ECB     ENCRYPT 409MB/s.
74virt:   [DES-64]        ECB     DECRYPT 409MB/s.
75virt:   [DES-64]        CBC     ENCRYPT 115MB/s.
76virt:   [DES-64]        CBC     DECRYPT 409MB/s.
77virt:   [TDES-192]      ECB     ENCRYPT 156MB/s.
78virt:   [TDES-192]      ECB     DECRYPT 156MB/s.
79virt:   [TDES-192]      CBC     ENCRYPT 41MB/s.
80virt:   [TDES-192]      CBC     DECRYPT 156MB/s.
81virt:   [AES-256]       ECB     ENCRYPT 780MB/s.
82virt:   [AES-256]       ECB     DECRYPT 789MB/s.
83virt:   [AES-256]       CBC     ENCRYPT 257MB/s.
84virt:   [AES-256]       CBC     DECRYPT 790MB/s.
85virt:   [AES-256]       CTS     N/A
86virt:   [AES-256]       CTS     N/A
87virt:   [AES-256]       CTR     ENCRYPT 625MB/s.
88virt:   [AES-256]       CTR     DECRYPT 630MB/s.
89virt:   [SM4-128]       ECB     ENCRYPT 449MB/s.
90virt:   [SM4-128]       ECB     DECRYPT 449MB/s.
91virt:   [SM4-128]       CBC     ENCRYPT 127MB/s.
92virt:   [SM4-128]       CBC     DECRYPT 450MB/s.
93virt:   [SM4-128]       CTS     N/A
94virt:   [SM4-128]       CTS     N/A
95virt:   [SM4-128]       CTR     ENCRYPT 389MB/s.
96virt:   [SM4-128]       CTR     DECRYPT 382MB/s.
97virt:   test cipher throughput SUCCESS.
98
99dma_fd: [AES-256]       GCM     ENCRYPT 264MB/s.
100dma_fd: [AES-256]       GCM     DECRYPT 265MB/s.
101dma_fd: [SM4-128]       GCM     ENCRYPT 130MB/s.
102dma_fd: [SM4-128]       GCM     DECRYPT 130MB/s.
103dma_fd: test aead throughput SUCCESS.
104
105virt:   [AES-256]       GCM     ENCRYPT 248MB/s.
106virt:   [AES-256]       GCM     DECRYPT 249MB/s.
107virt:   [SM4-128]       GCM     ENCRYPT 125MB/s.
108virt:   [SM4-128]       GCM     DECRYPT 125MB/s.
109virt:   test aead throughput SUCCESS.
110
111virt:   [         MD5]  266MB/s.
112virt:   [        SHA1]  215MB/s.
113virt:   [      SHA256]  266MB/s.
114virt:   [      SHA224]  266MB/s.
115virt:   [      SHA512]  N/A
116virt:   [      SHA384]  N/A
117virt:   [  SHA512_224]  N/A
118virt:   [  SHA512_256]  N/A
119virt:   [         SM3]  263MB/s.
120virt:   test hash throughput SUCCESS.
121
122dma_fd: [         MD5]  270MB/s.
123dma_fd: [        SHA1]  218MB/s.
124dma_fd: [      SHA256]  270MB/s.
125dma_fd: [      SHA224]  271MB/s.
126dma_fd: [      SHA512]  N/A
127dma_fd: [      SHA384]  N/A
128dma_fd: [  SHA512_224]  N/A
129dma_fd: [  SHA512_256]  N/A
130dma_fd: [         SM3]  270MB/s.
131dma_fd: test hash throughput SUCCESS.
132
133virt:   [    HMAC_MD5]  263MB/s.
134virt:   [   HMAC_SHA1]  213MB/s.
135virt:   [ HMAC_SHA256]  263MB/s.
136virt:   [ HMAC_SHA512]  N/A
137virt:   [    HMAC_SM3]  266MB/s.
138virt:   test hmac throughput SUCCESS.
139
140dma_fd: [    HMAC_MD5]  273MB/s.
141dma_fd: [   HMAC_SHA1]  220MB/s.
142dma_fd: [ HMAC_SHA256]  273MB/s.
143dma_fd: [ HMAC_SHA512]  N/A
144dma_fd: [    HMAC_SM3]  270MB/s.
145dma_fd: test hmac throughput SUCCESS.
146
147virt:   [RSA-1024]      PRIV    ENCRYPT 36ms.
148virt:   [RSA-1024]      PUB     DECRYPT 17ms.
149virt:   [RSA-2048]      PRIV    ENCRYPT 148ms.
150virt:   [RSA-2048]      PUB     DECRYPT 47ms.
151virt:   [RSA-3072]      PRIV    ENCRYPT 366ms.
152virt:   [RSA-3072]      PUB     DECRYPT 58ms.
153virt:   [RSA-4096]      PRIV    ENCRYPT 797ms.
154virt:   [RSA-4096]      PUB     DECRYPT 71ms.
155test rsa throughput SUCCESS.
156
157Test throughput SUCCESS.
158
159######## Test done ########
160console:/data #
161