Skip to content

Commit

Permalink
new canonical settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mackstann committed Mar 24, 2010
1 parent 58613bf commit 5288fd2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions bench.py
Expand Up @@ -11,13 +11,16 @@
'ruby_hash',
]

minkeys = 500000
maxkeys = 50*1000*1000
interval = 500000
minkeys = 2*1000*1000
maxkeys = 40*1000*1000
interval = 2*1000*1000
best_out_of = 3

# for the final run, use this:
#maxkeys = 40*1000*1000
#interval = 500000
#minkeys = 2*1000*1000
#maxkeys = 40*1000*1000
#interval = 2*1000*1000
#best_out_of = 3
# and use nice/ionice
# and shut down to the console
# and swapoff any swap files/partitions
Expand All @@ -36,7 +39,7 @@
fastest_attempt = 1000000
fastest_attempt_data = ''

for attempt in range(3): # best of 3
for attempt in range(best_out_of):
proc = subprocess.Popen(['./build/'+program, str(nkeys), benchtype], stdout=subprocess.PIPE)

# wait for the program to fill up memory and spit out its "ready" message
Expand Down

0 comments on commit 5288fd2

Please sign in to comment.