Revision: 14703
Author: adrian.chadd
Date: Thu May 27 05:24:54 2010
Log: Flesh out some more neater benchmarking!
http://code.google.com/p/lusca-cache/source/detail?r=14703
Modified:
/branches/LUSCA_HEAD/test-suite/atf/url_benchmark.c
=======================================
--- /branches/LUSCA_HEAD/test-suite/atf/url_benchmark.c Thu May 27 05:22:23
2010
+++ /branches/LUSCA_HEAD/test-suite/atf/url_benchmark.c Thu May 27 05:24:54
2010
@@ -59,11 +59,12 @@
int i;
long l;
+ printf(": %s\n", tag);
for (i = 0; i < iloop; i++) {
l = do_benchmark(nloop, f, proto, login, host, port, urlpath);
- printf("Run %d: %s: %ld msec; %.3f usec per request\n", i, tag, l /
1000, (float) l / (float) nloop);
- }
-
+ printf(" %d: %ld msec; %.3f usec per request\n", i, l / 1000, (float) l
/ (float) nloop);
+ }
+ printf("--\n");
}
int
@@ -71,21 +72,25 @@
{
int i;
+ /* old/new, defaults */
do_run(10, 100000, "old", urlMakeHttpCanonical, PROTO_HTTP,
"", "www.creative.net.au", 80, "/test.html");
do_run(10, 100000, "new", urlMakeHttpCanonical2, PROTO_HTTP,
"", "www.creative.net.au", 80, "/test.html");
+ /* old/new, non-standard port (triggers another printf call) */
do_run(10, 100000, "old, port 81", urlMakeHttpCanonical, PROTO_HTTP,
"", "www.creative.net.au", 81, "/test.html");
do_run(10, 100000, "new, port 81", urlMakeHttpCanonical2, PROTO_HTTP,
"", "www.creative.net.au", 81, "/test.html");
+ /* old/new, login, default port */
do_run(10, 100000, "old, port 80, login", urlMakeHttpCanonical,
PROTO_HTTP,
"username", "www.creative.net.au", 80, "/test.html");
do_run(10, 100000, "new, port 80, login", urlMakeHttpCanonical2,
PROTO_HTTP,
"username", "www.creative.net.au", 80, "/test.html");
+ /* old/new, login, non-standard port */
do_run(10, 100000, "old, port 81, login", urlMakeHttpCanonical,
PROTO_HTTP,
"username", "www.creative.net.au", 81, "/test.html");
do_run(10, 100000, "new, port 81, login", urlMakeHttpCanonical2,
PROTO_HTTP,
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.