mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
speed-regression.tcl script: obtain test names dynamically.
This commit is contained in:
parent
d9747b496e
commit
84c6bdfcd0
@ -49,13 +49,18 @@ proc get-result-with-name {output name} {
|
|||||||
return "n/a"
|
return "n/a"
|
||||||
}
|
}
|
||||||
|
|
||||||
proc combine-results {results} {
|
proc get-test-names output {
|
||||||
set tests {
|
set names {}
|
||||||
ping set get incr lpush lpop sadd spop
|
foreach line [split $output "\n"] {
|
||||||
"lrange (first 100 elements)"
|
lassign [split $line ","] key value
|
||||||
"lrange (first 600 elements)"
|
set key [string tolower [string range $key 1 end-1]]
|
||||||
"mset (10 keys)"
|
lappend names $key
|
||||||
}
|
}
|
||||||
|
return $names
|
||||||
|
}
|
||||||
|
|
||||||
|
proc combine-results {results} {
|
||||||
|
set tests [get-test-names [lindex $results 1]]
|
||||||
foreach test $tests {
|
foreach test $tests {
|
||||||
puts $test
|
puts $test
|
||||||
foreach {branch output} $results {
|
foreach {branch output} $results {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user