Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 74 lines (58 sloc) 2.72 kb
#!/usr/bin/env ruby
# In the ./out directory...
# grep elapsed: out*/*/*.out | ./results-report
#
# The input (the output of grep) looks like...
#
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 1. preparing... test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out done. elapsed: 14.746645
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 2. installing... done. elapsed: 26.521519
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 3. configuring... done. elapsed: 15.268454
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 4. loading-docs... done. elapsed: 33.968438
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 5. reading-docs... done. elapsed: 3.452213
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 6. index-building... done. elapsed: 6.184657
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 7. index-accessing... done. elapsed: 92.243037
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 8. stopping... done. elapsed: 6.540078
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 9. restarting... done. elapsed: 0.261005
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 10. warming... done. elapsed: 2.157646
# test-20110826143720_couchbase-2.0.0r-8-gdc68628/5000-0-100000-1-8-128.out:# 11. index-rebuilding... done. elapsed: 0.06121
#
lines = []
steps = {}
steps_arr = [] # Ordered by first seen step.
ARGF.each_line do |line|
dir_input, step_elapsed = line.split('.out:#')
step = step_elapsed.split('.')[1].strip
unless steps[step]
steps[step] = true
steps_arr << step
end
lines << line
end
print("test,software,ram-quota,replicas,items,nodes,vbuckets,min-item-size,#{steps_arr.join(',')}\n")
prev = curr = nil
steps = {}
lines.each do |line|
dir_input, step_elapsed = line.split('.out:#')
dir = dir_input.split('/')[-2]
test, software = dir.split('_')
input = dir_input.split('/')[-1]
inputs = input.split('-')
step = step_elapsed.split('.')[1].strip
elapsed = step_elapsed.split(':')[-1].strip
# Output something like...
#
# test-20110826143720,couchbase-2.0.0r-8-gdc68628,5000,0,100000,1,8,128,STEP-1-elapsed,STEP-2-elapsed,STEP-3-elapsed
#
curr = "#{test},#{software},#{inputs.join(',')}"
if prev and prev != curr
print("#{prev}")
steps_arr.each {|s| print(",#{steps[s]}") }
print("\n")
steps = {}
end
prev = curr
steps[step] = elapsed
end
print("#{prev}")
steps_arr.each {|s| print(",#{steps[s]}") }
print("\n")
Jump to Line
Something went wrong with that request. Please try again.