Skip to content

Commit 855d4c7

Browse files
committed
programs/unixbench/parse: handle Non-Index benchmarks
Signed-off-by: Philip Li <[email protected]>
1 parent f08976a commit 855d4c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

programs/unixbench/parse

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,21 @@ while (line = $stdin.gets)
2222
else
2323
end_time + 3600 * 24 - start_time # date overflow
2424
end
25-
when /^(System|2D Graphics|3D Graphics) Benchmarks .*Index .* INDEX$/
25+
when /^.+ Benchmarks .*Index .* INDEX$/
2626
# System Benchmarks Partial Index BASELINE RESULT INDEX
2727
# 2D Graphics Benchmarks Partial Index BASELINE RESULT INDEX
2828
# 3D Graphics Benchmarks Index Values BASELINE RESULT INDEX
29+
# Non-Index Benchmarks Partial Index BASELINE RESULT INDEX
2930
line = $stdin.gets
3031
line = line.chomp.resolve_invalid_bytes
3132

3233
throughput = line.split[-2].to_f unless line.empty?
33-
when /^.+? ([\d.]+) KBps\s+\([\d.]+ s, \d+ samples?\)/
34+
when /^.+? ([\d.]+) (KBps|lps)\s+\([\d.]+ s, \d+ samples?\)/
3435
# File Write 1024 bufsize 2000 maxblocks 3121976.0 KBps (30.0 s, 7 samples)
3536
# File Read 1024 bufsize 2000 maxblocks 438625975.6 KBps (30.0 s, 7 samples)
37+
# Recursion Test -- Tower of Hanoi 16724188.3 lps (20.0 s, 7 samples)
3638
throughput = $1.to_f
37-
when /^(System|2D Graphics|3D Graphics) Benchmarks Index Score .* ([0-9.]+)$/
39+
when /^.+ Benchmarks Index Score .* ([0-9.]+)$/
3840
score = $2
3941
end
4042
end

0 commit comments

Comments
 (0)