2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 04:22:33 +08:00

feat(跑分): 降低 aes 测试难度

This commit is contained in:
耗子
2024-12-18 11:06:20 +08:00
parent c3e0bf7aed
commit 03c74b2187

View File

@@ -286,7 +286,7 @@ func (s *App) encryptionTest(multi bool) int {
func (s *App) encryptionTestTask(numThreads int) error {
key := []byte("abcdefghijklmnopqrstuvwxyz123456")
dataSize := 1 * 1024 * 1024 * 1024 // 1GB
dataSize := 1024 * 1024 * 512 // 512 MB
plaintext := []byte(strings.Repeat("A", dataSize))
block, err := aes.NewCipher(key)
if err != nil {