Forum Moderators: phranque

Message Too Old, No Replies

.htaccess vs apache conf speed

and the use of milliseconds

         

zyron

1:17 pm on May 19, 2005 (gmt 0)

10+ Year Member



Hello!

I was wondering if anyone know any benchmark of .htaccess performance on a fast, shared server?
(My webhotell is on a shared server, but with a dedicated IP)

I did a simple test with
[wannabrowser.com...] , and found the difference to be minimal:

Request Response Summary
Effective URL: [domain.com...]
Responding IP: 100.0.0.0
Name Lookup Time: 5.6E-05
Total Retrieval Time: 0.23443
Download Speed: 847

This is one of the lowest retrival time I could get with my 10k .htaccess file, 190 lines (I inserted the agent banned list, can post it on request) and 4 rules.

While taking it out would only improve optimal loading time with less than 0.5 ms!

On the other hand, if I use a bad agent, so that a script is being called sending me an email with details about the agent block (to uncover wrong blockings), then I would have to add at least 6.5 ms because sending the email took some time.

But normal execution time of the php script is
0.01 ms

While I might save 0.5 ms by not loading my big .htaccess file, I also might save 0.5 ms by loading a html file instead of a php script.

To conclude, adding a BIG .htaccess file and running php scripts instead of using static html files, then you only add 1 ms loading time.
That is for me amazing, that all this scripting only require 1 ms - especially considering that php has to be compiled first... every time!
(I guess the same goes for .htaccess files)

But I would still like to see some benchmark on this (on fast computers).

Do anyone know if I can add milliseconds og microseconds in a htaccess file?
I know seconds are possible, but I need smaller values to make my own benchmark (for more accurate execution time).

But I have a bigger problem, actually a quite severe one - and it seems to be related to download speed. Using wannabrowser I sometimes got these values:

Name Lookup Time: 0.044079
Total Retrieval Time: 1.467395
Download Speed: 233

and even!

Name Lookup Time: 0.041517
Total Retrieval Time: 3.145943
Download Speed: 88

This is a page that on average loaded at 0.25 seconds. And still it sometimes managed to use many seconds!

What gives? How can this happen?
It shouldn't happen, right? Is it normal?
Is it my provider? Internet itself?

I'm very happy with my provider, but there is something strange related to this. Becuase it is happening a bit too often.

So I would be happy if anyone could recommend me a hosting service with dedicated static IP (can still be on shared server), running Linux and cost between $5-10 per month.. :)

Cheers
Lars

jdMorgan

10:56 pm on May 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do anyone know if I can add milliseconds og microseconds in a htaccess file?
I know seconds are possible, but I need smaller values to make my own benchmark (for more accurate execution time).

There is no 'delay' function in .htaccess.

What gives? How can this happen?
It shouldn't happen, right? Is it normal?
Is it my provider? Internet itself?

The nature of the internet makes it impossible to determine where delays are occurring for a specific test case, short of adding probes at various points throughout the internet to monitor the connection. All we can do is work with averages, such as those shown when using ping or tracert. The problem could be anywhere between your computer and the disk drive on your server.

We don't allow hosting reviews at WebmasterWorld, so I can't be of any help with that question.

Jim