FreeBSD and Linux Comparative Apache benchmarks 119
An anonymous fan wrote in to send us some benchmarks that attempt
to compare
FreeBSD and Linux
and normal web tasks like CGI, Flat HTML and mod_perl.
A little thin on the details, but not surprising results.
haha moderators bump this up. (Score:1)
Anyway I am supprised that linux only lost during raw http bytes a sec. and it didnt even lose by that much. It also seems that linux does realyl well with cgi scripts. Remember the germans ct magazine benchmark with linux vs NT and linux with 1 cpu outperformed NT with 4 when it came to cgi scripts.
Anyways thanks and moderators boost the original comment higher becuase the slashdot effect killed the web site and I thought it was insightfull.
Linus just added a cpu to ethernet card binding utility to the latest 2.3 kernel so when 2.4 comes out I would love to see how well bsd and NT can compete agaisnt linux. The only thing really hurting linux is the poor single threaded tcp/ip stack. I belive this is why alot of freebsd folks say there Os is better. After this new kernel is released I wonder if there will be any advantage left in traditional unix's or will linux finally be ready for prime time in the unix server arnea with the big boys.
web servers (Score:1)
They WERE fixed yesterday (Score:1)
The Server (Score:2)
It's up now.
Chip
Re:Smp support? (Score:1)
Any thoughts on why? (Score:1)
Re:Any thoughts on why? (Score:1)
I didn't get any matches for it when I grepped Apache's source tree..
Re:I was hoping to read this one... (Score:1)
Well, netscape is hardly one of the basics of a server operating system, but it's always worked fine for the FreeBSD machines I've used it on. I trust you're using the version from the ports collection?
But linux will grow faster and more streamlined.
As will the BSDs.
ALso does anyone know where i can get the BSD kernel source? Like the latest version.
It's in /usr/src/sys (or at least it should be if you installed everything correctly). The entire sources for the system live in /usr/src. You can get the most current sources by using cvsup to update your local source trees from the FreeBSD cvsup servers. Some example cvsup files live in /usr/share/examples/cvsup. Check out stable-supfile and ports-supfile.
Re:I was hoping to read this one... (Score:2)
My only software problem with FreeBSD is getting Applix to work. Applix is the only Linux commercial application I run that does not seem to have a FreeBSD version. Well, RealPlay too... v3 is kinda old...
My only real gripe with FreeBSD is that it's not as clean and "transparent" as OpenBSD. It's starting to look as cluttered as Linux.
-E
/.'d (Score:1)
Now what OS was used to serve this?
Mirrors?
-----------------------------
Computers are useless. They can only give answers.
Re:So does anyone know thw result ? (Score:1)
FreeBSD won static, and Linux won CGI.
Duh, busted their site already? (Score:1)
Heh
OUT...
Re:Here are the numbers (Score:2)
Not that I don't believe you - I just hate seing blind advocacy without any real figures behind it. You've made a blanket statement "[freeBSD], despite having a faster TCP/IP stack, linux is faster" - but I'm unconvinced. However I do run Linux and not *bsd because there are still apps that are Linux specific (e.g. Oracle and Sybase, both of which I need to run) - and I don't fancy playing about in any compatibility modes for that stuff since it's critical to me.
perl -e 'print scalar reverse q(\)-:
Re:Benchmark using the Loopback interface are bogu (Score:2)
The mod_perl group is hoping to do some more extensive benchmarking to look at the speed differences in longer scripts in the different languages too - the "hello world" example is only really a valid comparison between different ways of using Perl - not of different languages - for that you need a more complex test.
Matt.
perl -e 'print scalar reverse q(\)-:
Re:FreeBSD and Linux comparative Apache benchmarks (Score:1)
No offense, but why was your posting instantly uprated to a "2" score?
If your posts are often upgraded, then you start defaulting to higher numbers; if they're consistently downgraded, then you'll start defaulting to zero score.
So, it's probably that he writes a lot of good posts. Either that or he does have a secret admirer with moderator status. :-)
dylan_-
--
Just went to netcraft.com... (Score:1)
jaraxle
Who Compiled Apache? (Score:2)
Re:I was hoping to read this one... (Score:1)
lot of the basics just wouldnt work like *netscape* which hurt my feelings..
That's interesting, because I tried FreeBSD out of desperation in searching for a UNIX that would work well without much initial effort from me (I had not yet learned much about Unix, but that has changed largely since then). I found it to be far superior to Linux in that respect. I had been using Slackware for several months the year before I installed FreeBSD. I didn't like it much. As to other distros, I didn't like the feel of Redhat and didn't want to pay money for free software anyway.
FreeBSD was extremely easy to install. The ports tree system and Handbook on the homepage flattened the slope of the initial learning curve, and was remarkably rock stable. The centralized nature of FreeBSD is unbeatable. One also gets the advantage of benefiting from the many years of clean, efficient, intelligent coding done at Berkley University by all of those PhDs. Your tax dollars at work, take advantage of it.
Besides all that, FreeBSD has complete Linux emulation, so any proggie that will run on Linus' OS will run on any FBSD system.
As to the basics such as netscape not working (I never had any difficulty with any of it) perhaps you are going about things wrong? Did you try and install it from the ports, or did you try and install the Linux distrobution? If you tried the ports, that is curious. If a Linux distro, it may take some tinkering to set up right. If you are trying to run a Linux binary, did you make certain that your Linux emulation was working properly? go into
Maybe BSD is faster now.
It was always my impression that Linux was catching up to FreeBSD. After all, as the web page says, it has "The power to serve". They're not being overconfident, FreeBSD was built to be server first, workstation second. But as I type this note on my FreeBSD 3.2Release system running on a Toshiba Satellite laptop, I can't help but remember the article one or two months ago on Daemon News [daemonnews.org] called The Power to...Work? [daemonnews.org] which discussed something I had learned to my joy six months ago...that FreeBSD is a superb choice for a workstation. I'm a graduate student doing computational chemistry, and I most of the same stuff on my laptop that everyone else in the office does on their SGIs.
But I wouldn't trade it for my linux box anyday..
That's too bad. But if you want to stick with the penguin with the fat butt, it's your call. It's okay, too, because FreeBSD can just ride piggy-back on Linux's success. And like the sig I've seen here on
Happy hacking, Linux people We FreeBSD folk will just occassionally poke you fat penguin folk in your huge butts with our tridents every now and again so you don't get too comfortable in that oh so hot spotlight.
Re:I was hoping to read this one... (Score:1)
Well, when I was learning about Linux, I had bought a nice thick book about it, which included a Slackware CD, a RedHat CD and a Caldera Lite CD. From what I was able to gather from reading the material presented in the book at the time , neither of the latter was available as a free version. That was not what I wanted, I wanted a free (like free beer) UNIX, and Slackware seemed to fit the category. I never even heard of SUSE or Debian until this year.
A year later, when I decided to try FreeBSD, my ether was set up, and I understood networking a little better. It was, by far, the easiest to install over the network. If one just does a little digging on the homepage, say looking at the link entitled, "Getting FreeBSD" or reading the brief section further down called, "Easy to Install", one can learn how to install the OS with extreme ease and simplicity.
Re:Here are the numbers (Score:1)
"database stuff" usually don't fork either, for performance reasons.
Either database files are opened by some database library (that can stay in memory as long as the client code is), or, client-server style, the queries are sent to a database daemon that is also persistent (multiforked with processes pool or multithreaded, shouldn't matter).
I think that the figures are so close that you will choose FreeBSD or Linux over the other depending on others criteria (apps, available hardware, staff knowledge, ...)
Re:Any thoughts on why? (Score:1)
I'm not sure vfork() syscall was added for performance reason, but rather because of people requests (ease the porting for apps that use vfork(), and simple enough to implement that Linus bothered implementing it
I could be wrong, I saw the discussing some months ago...
Re:Any thoughts on why? (Score:1)
Re:Any thoughts on why? (Score:1)
Re:Any thoughts on why? (Score:1)
Re:I was hoping to read this one... (Score:1)
Personally, I've use SunOS 4 and hated the interface; I much prefer Solaris (ie, SVR4) which linux is closer, so linux is my preferred choice. YMMV, of course.
Let the holy war commence :)
--
Re:haha moderators bump this up. (Score:1)
--
Re:Bogus benchmark (Score:1)
--
Re:What about kernel 2.4? (Score:1)
Work is ongoing in this in light of the redone Mindcraft tests which showed that, even with tuning, a powerful quad processor unit was better running NT than linux for file sharing. Uptime, reliablity and CGI performance are a different matter entirely, however.
--
Bogus benchmark (Score:2)
In addition, the load will be affected by the script running on the same machine.
Using a bourne shell to conduct tests is not something I would view as particularly useful; perl would have been better, since it could compile itself to begin with to be more efficient (ie, faster). Also, this will give one concurrent test at a time; not particularly relevant in real-world situations.In conclusion, basing FreeBSD performance vs linux performance using these figures is lunacy.
--
Re:/.'d (Score:1)
(The server didn't work for me either, in case that's unclear.)
/* Steinar */
Slashdot scoring (a bit offtopic, sorry) (Score:1)
/* Steinar */
Re:Slashdot scoring (a bit offtopic, sorry) (Score:1)
The 1 point you get for being a registered user doesn't count, I guess. Only if some moderator(s) gives you 2 (or 3, or 4, or 5) points, they begin to accumulate.
Note that this also goes the opposite way -- write too many 0 or -1 messages, and you'll start at 0 instead of 1. (Idea: Get a new account
/* Steinar */
Re:Slashdot scoring (a bit offtopic, sorry) (Score:2)
When you get a cumulative score >n (what number? does anybody know), all your comments start at 2 points.
Let me guess, it would be something like:
Not just "Against Micro$oft" (Score:1)
While I'm all for holding back the OS holy wars, please remember that we're NOT all just "Against Microsoft."
Characterizing this movement as solely an anti-Microsoft sentiment devalues our platforms. After all, we're not OS/2, MacOS, or any of the non-free Unices. We're free, open software, and that's what's important.
--Joe--
Re:I was hoping to read this one... (Score:1)
Why yes, it does. My workstation is a P200MMX, so I didn't run VMWare for very long, but it ran properly.
Re:Here are the numbers (Score:1)
From what I understand, rather than having fixed syscall #s, freebsd (and probably open/netbsd) load an array of syscalls, which differs between the various supported ABIs.
Has anyone benchmarked this sort of thing? It would stand to reason that the extra overhead associated with supporting different ABIs would make spawning a process (or at least loading an executable) more expensive.
(Please correct me if I am wrong... I really am curious about this.)
Re:/.'d (Score:1)
We stuffed their pipe
Slashdot effect--defined (Score:1)
Hope it isn't running FreeBSD. (Score:1)
Anyone got a mirror? I'd really like to see these numbers.
Are the FreeBSD guys are pounding on us for being slow?
Re:I was hoping to read this one... (Score:1)
There's two questions here. First, how fast is it, and second, how complete is it?
To answer the first question -- FreeBSD's Linux emulation is as fast as FreeBSD is.
"Emulation" is the wrong choice of word really. To put it in fairly non-technical terms for a moment. When you run a binary on a FreeBSD (or Linux system, or other Unix system for that matter) the "image activator" examines the file to determine what to do with it.
Most Unices have an image activator that does one of two things. If the first two characters are "#!" then it recognises it as being a shell script, and does the right thing. Otherwise it loads the binary, fixes up any shared object references, and runs it as normal.
FreeBSD's image activator does something slightly different. As you know, program make lots of system calls, and in the binary these calls are specified as numbers rather than names (i.e., open(2) might be number 57). FreeBSD's image activator pulls in an array that maps these numbers to the actual FreeBSD system calls.
For FreeBSD native binaries these are one and the same thing.
If the image activator sees this is a Linux binary, it pulls in a different array. This might map the open(2) call from it's Linux number (34 say) to the FreeBSD number (57 -- remember, these numbers are hypothetical).
That's all. So this is not really emulation at all, but simply implementation of a different Application Binary Interface.
More more detail about this is available at the FreeBSD Handbook Linux section [freebsd.org].
Because there's no emulation to slow the process down, resource-intensive Linux binaries benefit from FreeBSD's better handling of heavy loads. This is the main reason for the claim "Better Linux than Linux" that you'll hear bandied about.
Before you ask, no, I don't know of any benchmarks, because I don't know of anyone that's taken the time to do it. If someone in the UK wants to throw a spare hard disk my way, I'd be happy to do it.
As to the second question -- despite what some of the more enthusiastic FreeBSD supporters here have said (and my address is nik@FreeBSD.org, so you can expect some bias) FreeBSD's Linux emulation is not perfect. Some (very much lesser used) system calls are not properly mapped, and some have no direct FreeBSD equivalent. But the vast majority of software works with no problems (that includes things like StarOffice, WordPerfect, and Oracle, to name three of the big heavyweights).
In addition, a couple of people have just joined the ranks of the FreeBSD committers expressly to work on FreeBSD's Linux emulation, so it looks as if the final wrinkles will be ironed out sooner rather than later.
Hope that helps.
N
Re:Loopback for benchmarking ??? (Score:1)
Benchmarking using a real network would make sense if you were benchmarking an entire system, including the network cards and drivers. This didn't seem to be a "this server configuration vs. that server configuration", but rather a "FreeBSD vs. Linux" and "static vs. mod_perl vs. CGI" benchmark.
If you want to see a FreeBSD vs. Linux benchmark, using a real network will skew the results in favour of whichever has the better driver for the given card.
For example, if you benchmarked with an Intel Etherexpress 10/100(B|+) card, the results would probably be tilted in FreeBSD's favour, as that driver in FreeBSD is extremely clean and efficient. OTOH, if you benchmarked with a DEC Tulip-based card, the results would be tilted towards Linux, because the Tulip is maintained much more actively in Linux than in FreeBSD. I'm not talking about a guaranteed win for one OS or the other, but it would have an effect on the result.
This doesn't invalidate your concerns about running a benchmark on localhost. The loopback device in one OS still might be better optimized in one OS, but using a real network device has that problem too.
The client load certainly interferes with testing the system as if it were a real web server. But if it's just some arbitrary FreeBSD vs. Linux test, there's nothing wrong with adding client load, as long as it's the same load on both systems. Such a test is valid, but not interesting, as it doesn't represent a real-world application.
I'd say the "Static vs. mod_perl vs. CGI binary vs. CGI perl script" data is interesting, as all other factors were the same between those tests. I certainly found it educational... I knew what order they would come in, but was not sure exactly what the gaps would be.
Re:Duh, busted their site already? (Score:1)
probably not the server that died, but that his
pipe is being filled (as stated above).
RAID / 2.2.10 / RedHat 6.0 (Score:1)
Does *BSD have software RAID? How does it compare to Linux's software RAID? Would you not expect that setting up a web server with at least software RAID would allow for faster responses, especially if there were databases on the same box on RAID devices?
I suppose the reason this was not tested is because, IMHO, RedHat screwed up and included a non-integrated version of the RAID code in their kernels. Ever wonder why RedHat has not posted a 2.2.10 kernel? If you loaded up RedHat 6.0 and created software RAID filesystems you can't upgrade because you can't patch the later kernels with the new raid code.
Yes, I follow linux-raid and there is supposed to be a way you can apply the patch to later kernels, ignore the rejects, manually make a few changes in some files, and supposedly be "safe" to run your new-style RAID disks. However, even though I have a DAT drive and can backup everything I'm not taking that chance on a "production" kernel. If it was 2.3.x I would not be complaining. I guess we'll just have to wait for mingo to create the patch for 2.2.10.
Yes, this is a troll, but I'm hopeing that it will put a fire under someone's but at RedHat to provide some assistance. No, I don't plan on making any contributions and fixing the code myself. If I tried, you would probably find your disks fried beyond repair because I don't know the code base yet. (But the way it's going I may have a good chance of getting up to speed before a patch comes out
Anyway, that's why they could not have tested software RAID even if they wanted to. Thanks for letting me flame, downgrade me if you must...
Re:RAID / 2.2.10 / RedHat 6.0 (Score:1)
for
> faster responses, especially if there were databases on the same box on RAID devices?
Not necessarily. If the entire dataset fits into the RAM cache anyway, there won't be any disk
activity for most web serving events. Databases + RAID sounds like a better application, but
most web sites don't use databases.
Most sites that I go to DO have a database, or at least I assume so.
In fact, I can't think of a web site that should not use a database that I would regularly visit. If they don't, then the content can't change that much and it's not worth "regularly" visiting. For those types of sites (static, not changing regularly) you're probably better of using Netscape's or IE's ability to check for changes and notify you than constantly pulling it up manually.
> I suppose the reason this was not tested is because, IMHO, RedHat screwed up and
included a
> non-integrated version of the RAID code in their kernels.
RedHat included a working version of software RAID. AFAIK, the RAID code in the plain 2.2
tree is not as recent/stable as the code shipped with RedHat.
What RedHat included was not what I considered production quality (even though I'm using it now). I HAD a RAID setup and when I installed ended up deleting the partitions and remaking the RAID volumes because there was no "warning" that RedHat needed the special upgrade force command to migrate the disks. Plus, they give you no way of installing on a RAID device anyway, so why did they feel the need to include a "non-standard" kernel anyway (you have to install on a "regular" partition, drop to single user, unmount almost everything, setup your RAID devices, copy over the data, and reboot in order to get "standard" directories like
> Ever wonder why RedHat has not posted a 2.2.10 kernel?
Maybe because there are still some filesystem-corrupting bugs in it?
There were in 2.2.9, but AFAIK 2.2.10 is stable. AND it fixes several security bugs which I can't protect against because of my RAID situation. To include "custom" (meaning not part of the official kernel as released by Linus et.al.) kernel patches, even if publically available, is irresponsible for a company like RedHat IF they don't take the responsibility to keep those patches (even if they didn't create the original) up to date so that it can be applied to the production kernel as new releases come out.
> I guess we'll just have to wait for mingo to create the patch for 2.2.10.
Ingo is working on a new version of RAID for Linux 2.3, the last I heard.
Last I heard he was also supposed to be working on the patches against the 2.2 series kernel also. At least I and a bunch of other people on the linux-raid list hope so...
Re:Here are the numbers (Score:1)
Ignore my signature please :P
--
I was hoping to read this one... (Score:1)
ALso does anyone know where i can get the BSD kernel source? Like the latest version. I looked on freebsd.org I didnt find anything but I didnt look to hard..
thanks...
Re:I was hoping to read this one... (Score:1)
there are how many linux distros out there?
IMHO... linux is a sucsessful hack job... but please don't get me wrong, i support all free/open source unix oses. Some are better than others in certain things (don't even get me started on OpenBSD and crypto... nothing else can even touch it)
Let's stop with these stupid, internal os holy wars. We're all in the same boat (be it BSD,Linux hell even HURD) and all against micro$oft.
Btw- yes FreeBSD has SMP and i believe Net and OpenBSD have it as well.
It's dead Jim (Score:1)
Re:Smp support? (Score:1)
Re:I was hoping to read this one... (Score:2)
I'm sorry...
> I wanted to see whitch was more solid freeBSD
> seemed nice but A lot of the basics just
> wouldnt work like *netscape* which hurt my
> feelings..
That's odd...I've used both the FreeBSD and Linux versions of Netscape here with out problems.
> ALso does anyone know where i can get the BSD kernel source?
If you are looking for an online reference, check out http://www.freebsd.org/cgi/cvsweb.cgi [freebsd.org]. If you want to download the source, you can get 'ssys.*' from ftp://ftp.cdrom.com/pub/FreeBSD/3. 2-RELEASE/src/ [cdrom.com]. However, just remember that FreeBSD is more than just a kernel, it is an Operating System.
Re:Here are the numbers (Score:1)
Most people say FreeBSD has a faster TCP-IP stack. I've seen (no I can't cite anyone) posts saying this and generally I'll believe it. A few technical posts have convinced me.
FreeBSD faster on static-html, and mod_perl routines. Linux faster (by a small margin) on cgi stuff. What's different between these methods? Well the cgi stuff involves creating a new process. The others don't. Thus I think FreeBSD is slower to create a new proccess than linux.
This is how I got to my conclusions. I will admit to a slight error, or confusion. I said "linux is faster". Editorially that should probably have been hacked off or worded to something like "linux is faster once the TCP/IP stack benefits run out for FreeBSD". Again though that might not be the right phrase. I mean that in this case linux is faster for forked proccesses. Err something. Now I might just be confusing myself.
-cpd
Re:Here are the numbers (Score:2)
Anyways just my thoughts.
-cpd
Netcraft states that... (Score:1)
Comment removed (Score:3)
Re:Bogus benchmark (Score:1)
Have you even looked at the script? It's just a small wrapper than launches ab, which is a standard benchmarking tool bundle with Apache.
Re:FreeBSD and Linux comparative Apache benchmarks (Score:1)
Re:Slashdot scoring (a bit offtopic, sorry) (Score:2)
Hmm, I *was* logged in, wasn't I?
Re:/.'d (Score:1)
Impressive indeed..
Less than 15 minutes from post to death. Must be a new record or something...
I've used all kinds of web servers, from IIS on winNT and WebSTAR on MacOS to Apache on Linux, FreeBSD and MacOSX. I must say that my most liked experiences came from the unicies, although WebSTAR comes close.
Hopefully the site is back online later today, I'd like to see some of the numbers...
my $0.02 CAD
Re:It's dead Jim (Score:1)
Linux and the big boys (Score:1)
Re:Smp support? (Score:1)
strange but true? (Score:1)
There is some technical reason that I have forgotten, but it is apparently true.
-- Reverend Vryl
Flaws in current web benchmarks (Score:2)
I may take some time to write a generic web load simulation suite so that these things can be done in a standardized way.
However, I am pleased to see that people are looking into BSD vs Linux performance. Linux needs to not get complacent, and BSD is an ideal prod in that direction. NT just can't provide the level of competition necessary to keep us lean and mean.
looks like it was running linux... (Score:1)
Host (206.107.112.9) appears to be up
Initiating TCP connect() scan against (206.107.112.9)
Adding TCP port 685 (state Open).
Adding TCP port 113 (state Open).
Adding TCP port 514 (state Open).
Adding TCP port 695 (state Open).
Adding TCP port 21 (state Open).
Adding TCP port 690 (state Open).
Adding TCP port 22 (state Open).
Adding TCP port 664 (state Open).
Adding TCP port 1024 (state Open).
Adding TCP port 109 (state Open).
Adding TCP port 23 (state Open).
Adding TCP port 110 (state Open).
Adding TCP port 25 (state Open).
Adding TCP port 515 (state Open).
Adding TCP port 111 (state Open).
Adding TCP port 513 (state Open).
Adding TCP port 80 (state Open).
The TCP connect scan took 5 seconds to scan 1483 ports.
For OSScan assuming that port 21 is open and port 30328 is closed and neither are firewalled
Interesting ports on (206.107.112.9):
Port State Protocol Service
21 open tcp ftp
22 open tcp ssh
23 open tcp telnet
25 open tcp smtp
80 open tcp http
109 open tcp pop-2
110 open tcp pop-3
111 open tcp sunrpc
113 open tcp auth
513 open tcp login
514 open tcp shell
515 open tcp printer
664 open tcp unknown
685 open tcp unknown
690 open tcp unknown
695 open tcp unknown
1024 open tcp unknown
TCP Sequence Prediction: Class=random positive increments
Difficulty=4317652 (Good luck!)
Sequence numbers: D75785A4 D6DE6B3D D771D9C5 D78FDB55 D78E8360 D6E6CD12
Remote operating system guess: Linux 2.1.122 - 2.1.132; 2.2.0-pre1 - 2.2.2
Nmap run completed -- 1 IP address (1 host up) scanned in 6 seconds
Here are the numbers (Score:4)
HTTPD Web Application Env Hits/s Operating Sys. Chip Session Client HTTP/x By
----- ------------------- ------ -------------- ---- ------- ------ ------ --
*apache 1.3.6 static html 996.41 Linux 2.2.10 PIII-500 no ab 1.0 ct
*apache 1.3.6 mod_perl 518.24 Linux 2.2.10 PIII-500 no ab 1.0 ct
*apache 1.3.6 C/C++ cgi executable 210.19 Linux 2.2.10 PIII-500 no ab 1.0 ct
*apache 1.3.6 perl cgi 7.22 Linux 2.2.10 PIII-500 no ab 1.0 ct
*apache 1.3.6 static html 1183.64 FreeBSD 3.2 PIII-500 no ab 1.0 ct
*apache 1.3.6 mod_perl 568.28 FreeBSD 3.2 PIII-500 no ab 1.0 ct
*apache 1.3.6 C/C++ cgi executable 154.94 FreeBSD 3.2 PIII-500 no ab 1.0 ct
*apache 1.3.6 perl cgi 6.94 FreeBSD 3.2 PIII-500 no ab 1.0 ct
As extracted from this post [swarthmore.edu] on the mod_perl mailing list which summarizes all the results of everyone so far.
Here is the author's summary:
Subject: Benchmarks
Author: Chip Turner
Date: Sun, 4 Jul 1999 19:40:44 -0400 (EDT)
As promised, I've run some benchmarks under Linux and FreeBSD comparing
Perl CGI, C CGI, flat html, and mod_perl. I've tried to duplicate the
methodology used by the benchmarks posted here in the past. The results
were fairly interesting. If anything can be concluded, it is that Perl
CGI is dead for serious web development. It's just way, way, way too
slow. Apache::Regostry can improve this (and I've not tested how much of
an effect it would have), but 7 requests per second compared to about 550
requests per second with mod_perl is _quite_ a significant gap.
Another interesting result is that for non-CGI requests, FreeBSD seems to
be about 10% faster than Linux in the mod_perl and flat html tests.
The info, including httpd.conf, the test script, and other info is
available at http://perl.pattern.net/bench/. Any feedback is definitely
welcome. If there is much interest, I can add an Apache::Registry version
of bench.cgi to the test, as well as a C Hello World Apache module.
(perl.pattern.net is a new DNS entry, so it might not have propogated yet.
Hopefully it will within a few hours.)
Chip
as found here [swarthmore.edu].
./ ed (Score:1)
Even race. (Score:1)
No winner, no loser in this configuration
I think my old tagline summarises it pretty well.
//Gunnar
Server back up...Here are the results (Score:1)
http://localhost/
Linux - 766.11
FreeBSD - 860.76
http://localhost/index.html
Linux - 996.41
FreeBSD - 1183.64
http://localhost/mp/
Linux - 518.24
FreeBSD - 568.28
http://localhost/cgi-bin/bench
Linux - 210.19
FreeBSD - 154.94
http://localhost/cgi-bin/bench.cgi
Linux - 7.22
FreeBSD - 6.94
Loopback for benchmarking ??? (Score:2)
The results are about what I'd expect--the Linux TCP/IP stack needs work.
But really, benchmarking using loopback??? I hardly expect a loopback driver to be optimized. The client loads interfere with the serving. And ther's no network driver or interrupt loads.
I would have been much more impressed if two boxen with 100baseTX cards had been connected with a crossover cable. It has plenty of bandwidth. Network benchmarks should be done on a network!
-- Robert
Re:FreeBSD and Linux comparative Apache benchmarks (Score:1)
Mong.
* Paul Madley
Re:FreeBSD and Linux comparative Apache benchmarks (Score:1)
Mong.
* Paul Madley
Re:FreeBSD and Linux comparative Apache benchmarks (Score:1)
No offense, but why was your posting instantly uprated to a "2" score?
Hmm, somebody likes you
Mong.
* Paul Madley
Re:Slashdot scoring (a bit offtopic, sorry) (Score:1)
On this basis though, somebody could write low-quality messages frequently, and then get a higher score automatically.
Benefits outweigh the disadvantages though, I guess.
Mong.
* Paul Madley
Re:I was hoping to read this one... (Score:2)
That's why I'm still using linux on my workstation computer
Re:Flaws in current web benchmarks (Score:1)