All,

Not very much thought went into this, but here's a quick
benchmark I ran comparing nsvhr using nsunix vs. nssock:


using nsvhr/nsunix
==================

# ab -n 5000 -c 20 http://shiobara.com/test.html
This is ApacheBench, Version 1.3c <$Revision: 1.45 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-2000 The Apache Group, http://www.apache.org/

Server Software:        AOLserver/3.4.2
Server Hostname:        shiobara.com
Server Port:            80

Document Path:          /test.html
Document Length:        586 bytes

Concurrency Level:      20
Time taken for tests:   78.043 seconds
Complete requests:      5000
Failed requests:        1
   (Connect: 0, Length: 1, Exceptions: 0)
Non-2xx responses:      1
Total transferred:      3760016 bytes
HTML transferred:       2933821 bytes
Requests per second:    64.07
Transfer rate:          48.18 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        0   114  3197
Processing:    27   196   123
Total:         27   310  3320


using nsvhr/nssock
==================

# ab -n 5000 -c 20 http://shiobara.com/test.html
This is ApacheBench, Version 1.3c <$Revision: 1.45 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-2000 The Apache Group, http://www.apache.org/

Server Software:        AOLserver/3.4.2
Server Hostname:        shiobara.com
Server Port:            80

Document Path:          /test.html
Document Length:        492 bytes

Concurrency Level:      20
Time taken for tests:   93.866 seconds
Complete requests:      5000
Failed requests:        0
Total transferred:      3290913 bytes
HTML transferred:       2464428 bytes
Requests per second:    53.27
Transfer rate:          35.06 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        0   141  9144
Processing:    61   231   116
Total:         61   372  9260


Not a big difference, and the difference might only be on my
hardware, memory size, my x86 Linux 2.4.16 ... who knows.

But, I'd be surprised if nsvhr/nssock was ever faster than
nsvhr/nsunix.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)

Reply via email to