simplified results for benchmark tests

This commit is contained in:
Stephen Mardson McQuay 2011-05-24 18:42:42 -06:00
parent f79e538b67
commit c08504a089
1 changed files with 5 additions and 3 deletions

View File

@ -126,6 +126,8 @@ if __name__ == '__main__':
stats['receive' ] = float(receive)
stats['count' ] = count
stats['participants'] = participants
stats['extra' ] = options.extra
stats['order' ] = options.order
print "%s" % stats
log.error("stats: %s", stats)
@ -135,12 +137,12 @@ if __name__ == '__main__':
tasks_accomplished_by[i[1]] += 1
stats['tasks'] = tasks_accomplished_by
npresults = np.array([(i[0],i[2],i[3],i[4], i[5]) for i in results])
# npresults = np.array([(i[0],i[2],i[3],i[4], i[5]) for i in results])
s = shelve.open(options.shelvename)
n = str(time.time())
s = shelve.open(options.shelvename)
s[n] = {
'stats' : stats,
'results' : npresults,
# 'results' : npresults,
}
s.close()