Skip to content

Commit

Permalink
add multibyterange + cache
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanocasazza committed Jul 16, 2010
1 parent 43815f4 commit 4796b53
Show file tree
Hide file tree
Showing 164 changed files with 4,636 additions and 3,268 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dist-hook:
$(distdir)/examples/*/*.spec \
$(distdir)/tests/ulib/tmp/* \
$(distdir)/tests/ulib/CApath/*.*0 \
$(distdir)/tests/ulib/ok/timer.ok \
$(distdir)/tests/ulib/ok/interrupt.ok \
$(distdir)/tests/ulib/ok/memory_pool.ok \
$(distdir)/tests/examples/csp.log \
Expand Down
1 change: 1 addition & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ dist-hook:
$(distdir)/examples/*/*.spec \
$(distdir)/tests/ulib/tmp/* \
$(distdir)/tests/ulib/CApath/*.*0 \
$(distdir)/tests/ulib/ok/timer.ok \
$(distdir)/tests/ulib/ok/interrupt.ok \
$(distdir)/tests/ulib/ok/memory_pool.ok \
$(distdir)/tests/examples/csp.log \
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ Take a look at:

$ ./configure --help
* ......
* --with-libz use system LIBZ library - [will check /usr /usr/local]
* --with-magic use system libmagic library - [will check /usr /usr/local]
* --with-pcre use system PCRE library - [will check /usr /usr/local]
* --with-expat use system EXPAT library - [will check /usr /usr/local]
* --with-ssl use system SSL library - [will check /usr /usr/local]
* --with-ssl use system SSL library - [will check /usr /usr/local] [default=yes]
* --with-libz use system LIBZ library - [will check /usr /usr/local] [default=yes]
* --with-pcre use system PCRE library - [will check /usr /usr/local] [default=yes]
* --with-libuuid use system libuuid library - [will check /usr /usr/local] [default=yes]
* --with-magic use system libmagic library - [will check /usr /usr/local] [default=yes]
* --with-expat use system EXPAT library - [will check /usr /usr/local] [default=yes]
* --with-ssh use system SSH library - [will check /usr /usr/local]
* --with-curl use system cURL library - [will check /usr /usr/local]
* --with-ldap use system openLDAP library - [will check /usr /usr/local]
* --with-mysql use system MySQL library - [will check /usr /usr/local]
* --with-libevent use system libevent library - [will check /usr /usr/local]
* --with-libuuid use system libuuid library - [will check /usr /usr/local]
* --with-libxml2 use system libxml2 library - [will check /usr /usr/local]

if you desire wrapping of some system library installed.
Expand Down
8 changes: 4 additions & 4 deletions doc/benchmark/bench_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ int main(int argc, char *argv[])

for(i=FROM; i<=TO; i+=STEP)
{
sprintf(str, "ab -n 1000000 -c %d -S -d -t 1 -k " // KEEP-ALIVES
// sprintf(str, "ab -n 1000000 -c %d -S -d -t 1 " // NO Keep-Alives
"-H \"Accept-Encoding: gzip\" " // HTTP compression
sprintf(str, "ab -n 1000000 -c %d -S -d -t 1 -k " // KEEP-ALIVES
// sprintf(str, "ab -n 1000000 -c %d -S -d -t 1 " // NO Keep-Alives
"-H \"Accept-Encoding: gzip,deflate\" " // HTTP compression
"\"http://%s" ":%d" "%s" "\"" " > ab.txt", i?i:1, IP, PORT, URL);

for(max_rps=0, ave_rps=0, min_rps=0xffff0, j=0; j<ITER; j++)
Expand Down Expand Up @@ -444,7 +444,7 @@ static int http_req(const char* request)
len = sprintf(buf, "GET %s HTTP/1.1\r\n"
"Host: %s" ":%d" "\r\n"
"User-Agent: a.c\r\n"
"Accept-Encoding: gzip\r\n"
"Accept-Encoding: gzip,deflate\r\n"
"Connection: close\r\n\r\n",
request, IP, PORT);

Expand Down
204 changes: 102 additions & 102 deletions doc/benchmark/stefano/userver_tcp_1000_NO_keepalive.csv
Original file line number Diff line number Diff line change
@@ -1,103 +1,103 @@
1,1273,1299,1312
10,8132,8268,8387
20,8414,8419,8422
30,8408,8416,8418
40,8402,8409,8414
50,8160,8214,8257
60,7980,8024,8094
70,7807,7876,7928
80,7709,7764,7811
90,7628,7674,7719
100,7591,7634,7687
110,7520,7558,7629
120,7539,7569,7622
130,7508,7540,7580
140,7510,7530,7546
150,7474,7500,7520
160,7493,7508,7531
170,7473,7498,7520
180,7466,7483,7535
190,7428,7452,7485
200,7427,7458,7489
210,7387,7427,7463
220,7415,7445,7472
230,7398,7421,7458
240,7365,7396,7431
250,7365,7399,7435
260,7363,7379,7414
270,7375,7389,7405
280,7364,7394,7459
290,7348,7375,7449
300,7345,7386,7467
310,7336,7362,7403
320,7331,7355,7376
330,7309,7353,7381
340,7302,7326,7348
350,7319,7335,7380
360,7289,7320,7353
370,7272,7298,7348
380,7285,7314,7386
390,7248,7286,7321
400,7266,7282,7297
410,7251,7295,7330
420,7254,7298,7343
430,7237,7291,7371
440,7236,7304,7342
450,7177,7244,7299
460,7215,7250,7291
470,7203,7252,7312
480,7203,7247,7296
490,7205,7258,7307
500,7171,7229,7264
510,7181,7236,7276
520,7167,7233,7283
530,7159,7190,7211
540,7177,7205,7250
550,7146,7204,7241
560,7107,7169,7206
570,7096,7144,7199
580,7086,7145,7193
590,7022,7116,7161
600,7061,7115,7163
610,7079,7134,7178
620,7001,7087,7139
630,7004,7063,7120
640,6943,7022,7073
650,6979,7072,7134
660,6946,7034,7070
670,6906,6985,7060
680,6905,6977,7023
690,6893,6933,6984
700,6824,6911,6958
710,6814,6904,6959
720,6844,6935,6987
730,6817,6898,6955
740,6819,6848,6883
750,6802,6826,6856
760,6790,6842,6903
770,6840,6885,6917
780,6783,6870,6954
790,6764,6830,6885
800,6721,6783,6844
810,6779,6820,6858
820,6738,6772,6831
830,6683,6774,6826
840,6710,6771,6828
850,6730,6770,6824
860,6645,6752,6812
870,6680,6742,6789
880,6627,6697,6728
890,6708,6738,6763
900,6642,6723,6770
910,6664,6696,6707
920,6594,6672,6711
930,6561,6669,6730
940,6661,6703,6724
950,6597,6642,6678
960,6471,6619,6675
970,6585,6638,6694
980,6571,6637,6693
990,6557,6608,6652
1000,6541,6574,6597
1,165,958,2002
10,9555,10223,10485
20,9694,9881,9977
30,9032,9118,9268
40,8463,8544,8599
50,8061,8125,8233
60,7977,8046,8112
70,7952,7994,8044
80,7852,7871,7917
90,7738,7769,7808
100,7672,7747,7787
110,7598,7638,7676
120,7558,7581,7611
130,7576,7614,7645
140,7504,7546,7585
150,7447,7510,7618
160,7492,7528,7593
170,7478,7509,7550
180,7452,7503,7545
190,7464,7483,7519
200,7430,7467,7498
210,7400,7445,7477
220,7436,7472,7507
230,7459,7469,7482
240,7379,7421,7451
250,7427,7468,7487
260,7433,7496,7736
270,7377,7440,7458
280,7400,7448,7473
290,7416,7449,7466
300,7394,7415,7434
310,7403,7441,7473
320,7381,7422,7467
330,7364,7398,7425
340,7406,7440,7464
350,7376,7421,7452
360,7380,7401,7427
370,7364,7407,7458
380,7368,7409,7439
390,7303,7375,7407
400,7361,7450,7801
410,7363,7379,7398
420,7308,7367,7397
430,7325,7371,7448
440,7303,7402,7751
450,7244,7301,7346
460,7289,7324,7361
470,7258,7316,7350
480,7287,7331,7505
490,7284,7363,7504
500,7279,7302,7319
510,7285,7329,7504
520,7212,7286,7329
530,7207,7256,7290
540,7243,7277,7346
550,7229,7286,7312
560,7223,7260,7293
570,7156,7198,7226
580,7147,7205,7249
590,7108,7149,7189
600,7049,7076,7122
610,6975,7012,7068
620,6967,6998,7056
630,6927,6951,6992
640,6914,6949,6986
650,6931,6967,7024
660,6880,6921,6952
670,6914,6940,6973
680,6923,6965,6987
690,6921,6947,6973
700,6862,6904,6926
710,6898,6965,7340
720,6870,6904,6933
730,6873,6916,6950
740,6897,6924,6947
750,6832,6885,6925
760,6857,6892,6940
770,6888,6911,6944
780,6777,6831,6877
790,6831,6869,6908
800,6866,6878,6898
810,6810,6848,6890
820,6817,6852,6912
830,6644,6872,7203
840,6787,6829,6863
850,6779,6812,6855
860,6808,6844,6869
870,6735,6797,6835
880,5864,6695,6811
890,6752,6810,6851
900,6770,6795,6833
910,6730,6756,6781
920,6744,6766,6782
930,6742,6778,6825
940,6737,6800,7131
950,6723,6764,6800
960,6720,6744,6762
970,6740,6772,6799
980,6741,6751,6768
990,6631,6735,6806
1000,6730,6772,6859

Score:716596,721616,726062 Time:1069 second(s) [00:17:49]
Score:723593,730441,737929 Time:1089 second(s) [00:18:09]
Loading

0 comments on commit 4796b53

Please sign in to comment.