summaryrefslogtreecommitdiff
path: root/pjlib/src/pjlib-test/ioq_udp.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-07-08 19:46:43 +0000
committerBenny Prijono <bennylp@teluu.com>2006-07-08 19:46:43 +0000
commita286f67546eb45c9779660decfb990b38203a268 (patch)
treec1332dc8c7179d59960eef3d68422aefe83cb8ab /pjlib/src/pjlib-test/ioq_udp.c
parentfc263fb7b06d10cabe2dabeb6a22a722a463527b (diff)
Attempted to fix epoll for Linux
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@592 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test/ioq_udp.c')
-rw-r--r--pjlib/src/pjlib-test/ioq_udp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pjlib/src/pjlib-test/ioq_udp.c b/pjlib/src/pjlib-test/ioq_udp.c
index d26e8fd9..dfc818fb 100644
--- a/pjlib/src/pjlib-test/ioq_udp.c
+++ b/pjlib/src/pjlib-test/ioq_udp.c
@@ -40,7 +40,7 @@
#define THIS_FILE "test_udp"
#define PORT 51233
-#define LOOP 100
+#define LOOP 2
///#define LOOP 2
#define BUF_MIN_SIZE 32
#define BUF_MAX_SIZE 2048
@@ -817,7 +817,7 @@ int udp_ioqueue_test()
int status;
int bufsize, sock_count;
- goto pass1;
+ //goto pass1;
PJ_LOG(3, (THIS_FILE, "...compliance test (%s)", pj_ioqueue_name()));
if ((status=compliance_test()) != 0) {
@@ -836,6 +836,8 @@ int udp_ioqueue_test()
return status;
}
+ //return 0;
+
PJ_LOG(4, (THIS_FILE, "...benchmarking different buffer size:"));
PJ_LOG(4, (THIS_FILE, "... note: buf=bytes sent, fds=# of fds, "
"elapsed=in timer ticks"));
@@ -847,7 +849,7 @@ pass1:
PJ_LOG(3, (THIS_FILE, "... (bytes) (nanosec)"));
PJ_LOG(3, (THIS_FILE, "...====================================="));
- goto pass2;
+ //goto pass2;
for (bufsize=BUF_MIN_SIZE; bufsize <= BUF_MAX_SIZE; bufsize *= 2) {
if ((status=bench_test(bufsize, SOCK_INACTIVE_MIN)) != 0)
@@ -859,7 +861,7 @@ pass2:
sock_count<=SOCK_INACTIVE_MAX+2;
sock_count *= 2)
{
- PJ_LOG(3,(THIS_FILE, "...testing with %d fds", sock_count));
+ //PJ_LOG(3,(THIS_FILE, "...testing with %d fds", sock_count));
if ((status=bench_test(bufsize, sock_count-2)) != 0)
return status;
}