Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos47 committed Dec 13, 2014
0 parents commit 84f9753
Show file tree
Hide file tree
Showing 191 changed files with 43,719 additions and 0 deletions.
Binary file added Comp4107Project.pdf
Binary file not shown.
28 changes: 28 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
The Robin and the Wasp
======================

This is a research project to test the efficiency of using a Polish Wasp algorithm instead
of using a Round Robin algorithm in a load balancer.

The structure is as follows:

-- proposal.pdf // Original project proposal
-- Comp4107Project.pdf // Final report
-- Readme.md // This file.
-- test.js // Run the benchmarking, run with "node test.js"
-- copyPages.js // Copy page1.html 23 times, run with "node tcopyPages.js"
-- pages // Contains all the html pages for the static server
|-- page[1-25].html //lorem ipsum
-- results //results from various tests.
|-- *
-- roundrobin // the basic round robin load balancer
|-- app.js //run with "node app.js"
-- wasptask // the modified polish wasp load balancer
|-- app.js //run with "node app.js"
-- shared // shared resources
|-- shared.js //constains all the port numbers
-- staticServer // static server serves all files in pages
|-- app.js // run with "node app.js [port-number]"
|-- start-static.js // runs a new instance of "node app.js" with each port number in shared.js
-- wrk // open source benchmarking program
|-- *
5 changes: 5 additions & 0 deletions copyPages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var spawn = require('child_process').spawn;

for(var i = 2; i <= 25; ++i){
spawn("cp", ["./pages/page1.html", "./pages/page"+i+".html"]);
}
1,152 changes: 1,152 additions & 0 deletions pages/page1.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page10.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page11.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page12.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page13.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page14.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page15.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page16.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page17.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page18.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page19.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page2.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page20.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page21.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page22.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page23.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page24.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page25.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page3.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page4.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page5.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page6.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page7.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page8.html

Large diffs are not rendered by default.

1,152 changes: 1,152 additions & 0 deletions pages/page9.html

Large diffs are not rendered by default.

Binary file added proposal.pdf
Binary file not shown.
50 changes: 50 additions & 0 deletions results/rr-8thread-50tests-pc-2-export.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
1,page8.html,872.71ms,339.33ms,1.59s,72.86%,40.14,23.76,90.00,66.25%,40.96,16.87MB
2,page22.html,828.88ms,266.73ms,1.57s,71.43%,36.34,13.61,80.00,71.43%,37.40,15.41MB
3,page7.html,814.05ms,258.53ms,1.51s,69.80%,36.80,10.45,79.00,77.14%,37.53,15.46MB
6,page7.html,817.28ms,263.56ms,1.62s,70.19%,37.09,10.00,54.00,60.87%,36.27,14.93MB
5,page19.html,817.57ms,255.81ms,1.62s,71.01%,35.71,12.10,64.00,70.59%,36.19,14.90MB
4,page3.html,788.20ms,241.64ms,1.52s,68.57%,37.23,10.61,78.00,80.00%,38.09,15.68MB
7,page16.html,827.77ms,229.72ms,1.50s,70.00%,36.90,8.12,51.00,76.67%,36.66,15.10MB
8,page18.html,814.17ms,233.83ms,1.51s,68.97%,36.07,10.34,55.00,68.97%,35.99,14.82MB
9,page16.html,905.51ms,199.79ms,1.31s,63.59%,34.48,6.25,52.00,70.97%,34.99,14.41MB
10,page23.html,887.81ms,192.20ms,1.31s,66.19%,34.80,7.95,66.00,83.33%,35.00,14.41MB
12,page24.html,893.69ms,204.32ms,1.32s,63.03%,33.59,4.99,43.00,58.82%,33.44,13.78MB
11,page19.html,903.05ms,212.59ms,1.35s,61.11%,34.56,5.81,41.00,77.78%,35.03,14.42MB
16,page12.html,932.62ms,208.25ms,1.40s,67.23%,33.12,6.16,40.00,76.47%,34.23,14.10MB
15,page4.html,898.11ms,204.52ms,1.43s,67.00%,34.76,9.73,54.00,68.97%,34.79,14.33MB
13,page8.html,933.58ms,185.68ms,1.33s,70.48%,32.87,6.13,41.00,80.00%,34.13,14.05MB
14,page16.html,902.17ms,196.93ms,1.39s,63.81%,33.67,7.07,44.00,73.33%,34.95,14.39MB
21,page22.html,969.47ms,219.13ms,1.46s,69.75%,32.82,6.13,40.00,64.71%,32.40,13.34MB
22,page20.html,974.24ms,205.62ms,1.52s,70.48%,31.27,6.51,42.00,60.00%,31.63,13.02MB
17,page6.html,930.15ms,200.41ms,1.41s,64.94%,28.82,9.28,39.00,72.73%,29.00,11.94MB
18,page25.html,993.75ms,217.22ms,1.53s,71.43%,28.45,9.77,40.00,81.82%,28.96,11.93MB
19,page1.html,977.69ms,190.16ms,1.46s,70.00%,30.90,5.92,41.00,60.00%,31.20,12.85MB
20,page1.html,963.34ms,201.09ms,1.45s,65.71%,30.30,5.29,38.00,70.00%,30.76,12.67MB
23,page15.html,977.56ms,201.11ms,1.72s,66.67%,32.00,4.99,41.00,50.00%,32.40,13.34MB
24,page23.html,970.26ms,205.61ms,1.70s,69.05%,31.08,5.23,40.00,75.00%,31.76,13.08MB
25,page10.html,847.49ms,339.35ms,1.60s,73.64%,34.17,20.42,79.00,60.56%,34.13,14.07MB
27,page10.html,784.11ms,231.07ms,1.51s,69.05%,34.28,9.69,58.00,63.89%,35.56,14.64MB
28,page15.html,781.00ms,222.12ms,1.37s,62.95%,34.19,8.87,60.00,78.12%,35.29,14.53MB
29,page15.html,795.74ms,227.72ms,1.59s,74.11%,33.47,8.08,52.00,65.62%,34.25,14.12MB
32,page10.html,770.93ms,238.51ms,1.45s,67.10%,34.27,8.79,61.00,72.73%,35.13,14.49MB
26,page20.html,794.51ms,219.07ms,1.42s,68.57%,33.52,7.67,45.00,64.00%,34.50,14.20MB
30,page5.html,789.92ms,238.03ms,1.42s,64.29%,34.71,5.53,44.00,64.29%,34.16,14.07MB
31,page15.html,803.30ms,212.83ms,1.43s,64.76%,31.80,4.52,39.00,73.33%,31.52,12.98MB
33,page14.html,947.00ms,216.60ms,1.48s,69.39%,32.07,3.89,40.00,71.43%,31.87,13.12MB
34,page17.html,917.53ms,217.58ms,1.42s,67.14%,32.20,3.85,39.00,70.00%,31.99,13.17MB
35,page14.html,910.76ms,222.24ms,1.41s,68.57%,30.80,3.36,39.00,80.00%,31.20,12.86MB
36,page14.html,947.30ms,211.12ms,1.39s,61.43%,31.50,4.55,41.00,80.00%,31.94,13.15MB
38,page18.html,917.71ms,217.57ms,1.51s,67.35%,31.43,6.27,40.00,50.00%,32.50,13.38MB
39,page25.html,901.82ms,225.70ms,1.40s,64.76%,31.67,5.00,39.00,60.00%,32.59,13.42MB
40,page3.html,913.28ms,194.86ms,1.49s,66.07%,32.50,6.37,41.00,62.50%,33.19,13.67MB
37,page14.html,936.37ms,213.84ms,1.62s,68.57%,32.80,9.03,66.00,76.67%,32.93,13.56MB
41,page7.html,880.57ms,207.44ms,1.50s,68.91%,31.76,5.56,41.00,82.35%,32.33,13.31MB
42,page9.html,869.33ms,202.35ms,1.25s,67.46%,30.83,5.76,44.00,72.22%,31.40,12.93MB
43,page23.html,866.94ms,195.25ms,1.45s,65.18%,33.25,5.21,43.00,75.00%,32.70,13.46MB
44,page19.html,871.06ms,191.88ms,1.50s,63.91%,32.42,6.74,44.00,63.16%,33.26,13.70MB
45,page12.html,880.02ms,206.93ms,1.29s,66.67%,32.17,3.59,37.00,50.00%,32.26,13.29MB
46,page21.html,876.85ms,215.01ms,1.43s,65.87%,33.17,3.81,41.00,66.67%,33.66,13.87MB
47,page21.html,870.61ms,216.45ms,1.46s,71.43%,32.17,4.97,40.00,75.00%,32.20,13.27MB
48,page5.html,862.14ms,231.96ms,1.42s,72.11%,36.76,19.25,109.00,95.24%,37.53,15.45MB
49,page21.html,233.95ms,99.84ms,581.77ms,68.57%,141.67,24.43,177.00,80.00%,138.83,57.22MB
50,page3.html,237.17ms,106.40ms,623.63ms,71.43%,141.69,22.06,167.00,75.00%,139.59,57.51MB
Loading

0 comments on commit 84f9753

Please sign in to comment.