-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.txt
78 lines (50 loc) · 2.57 KB
/
Readme.txt
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
-- How do I compile the code ?
Run make command to create the executable.
$ make
-- How do I run experiments ?
- The make command creates an executable called "Simulation". Running that will give you options as to which experiment you can run. Here is a sample output.
$./Simulation
ERROR :: Usage: ./Simulation <test_case>
0: Smart VS Dumb membership check
1: Number of elements VS FPP
2: Filter size VS FPP
3 : Number of hashes VS FPP
4 : Refresh Rate VS FPP
5 : Number of Constituent Bloom Filter VS FPP
6 : Dynamic Resizing
7 : Recyclable Bloom Filter Experiment
- You have to pass the number of the test you want to run. For example if you want to run the smart vs simple membership check, you need to run the following command:
$./Simulation 0
-- How do I plot the results of the experiment ?
- There is a folder called "Results" where the results are dumped in a text file. The file name of the results text file is based on the test case name and timestamp of the experiment run. There is another folder called "Plot" which contains matplotlib script to plot the results. Usage of the python scripts can be got by simple running the script. For example:
$python SmartVsDumbMembershipCheck.py
Invalid usage
python SmartVsDumbMembershipCheck.py <smartFPRcsv> <dumbFPRcsv>
For example if you have to plot of the results of the smart vs simple membership check experiment, run the following command:
$python SmartVsDumbMembershipCheck.py ../Results/dumbVsSmartMemTest2015-07-23\:17\:02\:47smartMemCheckFPR_2015-07-23\:17\:02\:47.csv ../Results/dumbVsSmartMemTest2015-07-23\:17\:02\:47dumbmemCheckFPR_2015-07-23\:17\:02\:47.csv
-- How do I plot the results present in the thesis ?
- Note that the parameters of the data strucutre are already set inside macros in the header files.
-- Fig.6.1 in Chapter 6
1) Run the experiment
$./Simulation 0
2) Using the results file generated plot using the matplotlib script SmartVsDumbMembershipCheck
-- Fig. 6.2 in Chapter 6
1) Run the experiment
$./Simulation 1
2) Plot the results using matplotlib script FPRMethodsVSnumElements.py
-- Fig. 6.3 in Chapter 6
1) Run the experiment
$./Simulation 2
2) Plot the results using matplotlib script FPRMethodsVSBFsize.py
-- Fig. 6.4 in Chapter 6
1) Run the experiment
$./Simulation 4
2) Plot the results using matplotlib script varRR.py
-- Fig. 6.5 in Chapter 6
1) Run the experiment
$./Simulation 5
2) Plot the results using matplotlib script varFilterNumbers.py
-- Fig. 6.6 in Chapter 6
1) Run the experiment
$./Simulation 6
2) Plot the results using matplotlib script dynamicResizingPlot.py