blob: d2dbf59ef4aa541dc2ee830268ed161c684a33cb [file] [log] [blame]
Bhaskar Maddala10e26de2013-11-20 12:55:21 -05001These are the result of tests conducted to determine efficacy of hashing
2algorithms and avalache application in haproxy. All results below were
3generated using version 1.5. See the document on hashing under internal docs
4for a detailed description on the tests the methodology and interpretation
5of the results.
6
7The following was the set up used
8
9(a) hash-type consistent/map-bases
10(b) avalanche on/off
11(c) balanche host(hdr)
12(d) 3 criteria for inputs
13 - ~ 10K requests, including duplicates
14 - ~ 46K requests, unique requests from 1 MM requests were obtained
15 - ~ 250K requests, including duplicates
16(e) 17 servers in backend, all servers were assigned the same weight
17
18The results can be interpreted across 3 dimensions corresponding to input
19criteria (a)/(b) and (d) above
20
21== 10 K requests ==
22
23=== Consistent with avalanche ===
24
25Servers SDBM DJB2 WT6
26-----------------------------
271 576 637 592
282 552 608 600
293 539 559 551
304 578 586 493
315 534 555 549
326 614 607 576
337 519 556 554
348 591 565 607
359 529 604 575
3610 642 550 678
3711 537 591 506
3812 568 571 567
3913 589 606 572
4014 648 568 711
4115 645 557 603
4216 583 627 591
4317 699 596 618
44-----------------------------
45Std Dev 48.95 26.29 51.75
46
47=== Consistent without avalanche ===
48
49Servers SDBM DJB2 WT6
50-----------------------------
511 612 627 579
522 631 607 563
533 585 605 604
544 594 502 518
555 583 526 602
566 589 594 555
577 591 602 511
588 518 540 623
599 550 519 523
6010 600 637 647
6111 568 536 550
6212 552 605 645
6313 547 556 564
6414 615 674 635
6515 642 624 618
6616 575 585 609
6717 591 604 597
68-----------------------------
69Std Dev 30.71 45.97 42.52
70
71=== Map based without avalanche ===
72
73Servers SDBM DJB2 WT6
74-----------------------------
751 602 560 598
762 576 583 583
773 579 624 593
784 608 587 551
795 579 549 588
806 582 560 590
817 553 616 562
828 568 600 551
839 594 607 620
8410 574 611 635
8511 578 607 603
8612 563 581 547
8713 604 531 572
8814 621 606 618
8915 600 561 602
9016 555 570 585
9117 607 590 545
92-----------------------------
93Std Dev 19.24 25.56 26.29
94
95=== Map based with avalanche ===
96
97Servers SDBM DJB2 WT6
98-----------------------------
99Servers SDBM DJB2 WT6
1001 548 641 597
1012 612 563 655
1023 596 536 595
1034 609 574 537
1045 586 610 570
1056 600 568 562
1067 589 573 578
1078 584 549 573
1089 561 636 603
10910 607 553 603
11011 554 602 616
11112 560 577 568
11213 597 534 570
11314 597 647 570
11415 563 581 647
11516 575 647 565
11617 605 552 534
117-----------------------------
118Std Dev 20.23 37.47 32.16
119
120== Uniques in 1 MM ==
121
122=== Consistent with avalanche ===
123
124Servers SDBM DJB2 WT6
125-----------------------------
1261 2891 2963 2947
1272 2802 2849 2771
1283 2824 2854 2904
1294 2704 2740 2763
1305 2664 2699 2646
1316 2902 2876 2935
1327 2829 2745 2730
1338 2648 2768 2800
1349 2710 2741 2689
13510 3070 3111 3106
13611 2733 2638 2589
13712 2828 2866 2885
13813 2876 2961 2870
13914 3090 2997 3044
14015 2871 2879 2827
14116 2881 2727 2921
14217 2936 2845 2832
143-----------------------------
144Std Dev 121.66 118.59 131.61
145
146=== Consistent without avalanche ===
147
148Servers SDBM DJB2 WT6
149-----------------------------
1501 2879 2930 2863
1512 2835 2856 2853
1523 2875 2741 2899
1534 2720 2718 2761
1545 2703 2754 2689
1556 2848 2901 2925
1567 2829 2756 2838
1578 2761 2779 2805
1589 2719 2671 2746
15910 3015 3176 3079
16011 2620 2661 2656
16112 2879 2773 2713
16213 2829 2844 2925
16314 3064 2951 3041
16415 2898 2928 2877
16516 2880 2867 2791
16617 2905 2953 2798
167-----------------------------
168Std Dev 107.65 125.2 111.34
169
170=== Map based without avalanche ===
171
172Servers SDBM DJB2 WT6
173-----------------------------
1741 2863 2837 2923
1752 2966 2829 2847
1763 2865 2803 2808
1774 2682 2816 2787
1785 2847 2782 2815
1796 2910 2862 2862
1807 2821 2784 2793
1818 2837 2834 2796
1829 2857 2891 2859
18310 2829 2906 2873
18411 2742 2851 2841
18512 2790 2837 2870
18613 2765 2902 2794
18714 2870 2732 2900
18815 2898 2891 2759
18916 2877 2860 2863
19017 2840 2842 2869
191-----------------------------
192Std Dev 64.65 45.16 43.38
193
194=== Map based with avalanche ===
195
196Servers SDBM DJB2 WT6
197-----------------------------
1981 2816 2859 2895
1992 2841 2739 2789
2003 2846 2903 2888
2014 2817 2878 2812
2025 2750 2794 2852
2036 2816 2917 2847
2047 2792 2782 2786
2058 2800 2814 2868
2069 2854 2883 2842
20710 2770 2854 2855
20811 2851 2854 2837
20912 2910 2846 2776
21013 2904 2792 2882
21114 2984 2767 2854
21215 2766 2863 2823
21316 2902 2797 2907
21417 2840 2917 2746
215-----------------------------
216Std Dev 58.39 52.16 43.72
217
218== 250K requests ==
219
220=== Consistent with avalanche ===
221
222Servers SDBM DJB2 WT6
223-----------------------------
2241 14182 12996 20924
2252 14881 18376 8901
2263 13537 17935 13639
2274 11031 12582 19758
2285 15429 10084 12112
2296 18712 12574 14052
2307 14271 11257 14538
2318 12048 18582 16653
2329 10570 10283 13949
23310 11683 13081 23530
23411 9288 14828 10818
23512 10775 13607 19844
23613 10036 19138 15413
23714 31903 15222 11824
23815 21276 11963 10405
23916 17233 23116 11316
24017 11437 12668 10616
241-----------------------------
242Std Dev 5355.95 3512.39 4096.65
243
244=== Consistent without avalanche ===
245
246Servers SDBM DJB2 WT6
247-----------------------------
2481 12411 17833 11831
2492 14213 11165 14833
2503 11431 10241 11671
2514 14080 13913 20224
2525 10886 12101 14272
2536 15168 12470 14641
2547 18802 12211 10164
2558 18678 11852 12421
2569 17468 10865 17655
25710 19801 28493 13221
25811 10885 20201 13507
25912 20419 11660 14078
26013 12591 18616 13906
26114 12798 18200 24152
26215 13338 10532 14111
26316 11715 10478 14759
26417 13608 17461 12846
265-----------------------------
266Std Dev 3113.33 4749.97 3256.04
267
268=== Map based without avalanche ===
269
270Servers SDBM DJB2 WT6
271-----------------------------
2721 14660 12483 11472
2732 11118 11552 12146
2743 15407 19952 11032
2754 15444 12218 14572
2765 22091 11434 13738
2776 18273 17587 21337
2787 10527 16784 15118
2798 13013 12010 17195
2809 15754 9886 14611
28110 13758 11613 14844
28211 19564 16453 17403
28312 9692 17246 14469
28413 13905 11885 20024
28514 19401 15350 10611
28615 11889 25485 11172
28716 13846 13928 12109
28817 9950 12426 16439
289-----------------------------
290Std Dev 3481.45 3847.74 3031.93
291
292=== Map based with avalanche ===
293
294Servers SDBM DJB2 WT6
295-----------------------------
2961 15546 11454 12871
2972 15388 11464 17587
2983 11767 15527 14785
2994 15843 13214 11420
3005 11129 12192 15083
3016 15647 17875 11051
3027 18723 13629 23006
3038 10938 11295 11223
3049 12653 17202 23347
30510 10108 12867 14178
30611 12116 11190 20523
30712 14982 12341 11881
30813 13221 13929 11828
30914 17642 19621 15320
31015 12410 26171 11721
31116 25075 14764 13544
31217 15104 13557 8924
313-----------------------------
314Std Dev 3521.83 3742.21 4101.2