-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexperiment_3.py
executable file
·35 lines (28 loc) · 1.06 KB
/
experiment_3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
import runner
import subprocess
import time
import csv
import os
import ConfigParser
import io
import experiment_utils
SET_SIZE = 2**16
KEY_SIZE = 80
'''
STRATEGIES = [runner.Strategy.SIMPLE_HASH, runner.Strategy.GAUSS_SIMPLE_HASH,
runner.Strategy.BLOOM_FILTER, runner.Strategy.POLYNOMIALS,
runner.Strategy.POLYNOMIALS_SIMPLE_HASH, runner.Strategy.TWO_PARTY]
STRATEGIES = [runner.Strategy.POLYNOMIALS_SIMPLE_HASH, runner.Strategy.TWO_PARTY]
'''
STRATEGIES = [runner.Strategy.POLYNOMIALS_SIMPLE_HASH]
NUM_OF_PARTIES = [2,3,5,6,7,9]
experiment_utils.prepare_machines(NUM_OF_PARTIES[-1])
experiment_utils.prepare_results_file('experiment3.csv')
for num_of_parties in NUM_OF_PARTIES:
for strategy in STRATEGIES:
for i in xrange(10):
print "start time: " + time.asctime()
while not experiment_utils.run_and_add_to_csv('experiment3.csv',num_of_parties,KEY_SIZE,SET_SIZE,False,strategy,num_threads=4):
pass
experiment_utils.avg_experiments('experiment3.csv', 'experiment3_avg.csv')