Skip to content

Commit

Permalink
更新CPU测试逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Jun 25, 2024
1 parent 3c9ef4d commit 21c9c75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ func main() {
if testMethod == "sysbench" {
res = cpu.SysBenchTest(language, testThread)
if res == "" {
res = "sysbench test failed, switch to use dd test.\n"
res = "sysbench test failed, switch to use geekbench test.\n"
res += cpu.GeekBenchTest(language, testThread)
}
} else if testMethod == "geekbench" {
res = cpu.GeekBenchTest(language, testThread)
if res == "" {
res = "geekbench test failed, switch to use sysbench test.\n"
res += cpu.GeekBenchTest(language, testThread)
}
}
}
fmt.Println("--------------------------------------------------")
Expand Down

0 comments on commit 21c9c75

Please sign in to comment.