* Nethttpd_plex performance question
@ 2008-02-12 0:20 Andre Nathan
2008-02-12 0:43 ` [Caml-list] " Karl Zilles
0 siblings, 1 reply; 2+ messages in thread
From: Andre Nathan @ 2008-02-12 0:20 UTC (permalink / raw)
To: caml-list
Hello
I'm trying to write a simple webserver using Nethttpd_plex from the
ocamlnet package. I did a simple benchmark using the examples provided
in the distribution (easy_daemon.ml and netplex.ml). Both examples
create static pages, but the netplex version shows worse performance,
which I think is odd because it uses a multi-process model, while
easy_damon is a single process handling all requests.
I'm running "ab" (apache's benchmark tool), doing 1,000 connections, 100
concurrently. Here are the results:
- easy_daemon:
Requests per second: 1699.87 [#/sec] (mean)
- netplex:
Requests per second: 591.22 [#/sec] (mean)
[netplex's results actually vary a lot, sometimes reaching about 1,000
req/s but sometimes also being as low as 300 req/s. On average it seems
to be around 600 req/s]
I'm using the following configuration for netplex's workload_manager:
workload_manager {
type = "dynamic";
max_jobs_per_thread = 1;
min_free_jobs_capacity = 30;
max_free_jobs_capacity = 50;
max_threads = 256;
};
Also, even though I'm using Netplex_mp.mp (multiple processes, instead of
multiple threads), compiling with -thread gives me a performance gain
(the numbers above are for a compilation with the -thread flag). Is that
expected?
Does anyone have any tips for improving netplex's performance? I believe
that with the right settings it should be able to outperform the simpler
daemon easily, since it's using multiple processes.
Thanks in advance,
Andre
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Nethttpd_plex performance question
2008-02-12 0:20 Nethttpd_plex performance question Andre Nathan
@ 2008-02-12 0:43 ` Karl Zilles
0 siblings, 0 replies; 2+ messages in thread
From: Karl Zilles @ 2008-02-12 0:43 UTC (permalink / raw)
To: Andre Nathan; +Cc: caml-list
Andre Nathan wrote:
> I'm trying to write a simple webserver using Nethttpd_plex from the
> ocamlnet package. I did a simple benchmark using the examples provided
> in the distribution (easy_daemon.ml and netplex.ml). Both examples
> create static pages, but the netplex version shows worse performance,
> which I think is odd because it uses a multi-process model, while
> easy_damon is a single process handling all requests.
How many processors does the machine that you're testing on have?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-12 0:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-12 0:20 Nethttpd_plex performance question Andre Nathan
2008-02-12 0:43 ` [Caml-list] " Karl Zilles
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox