Обсуждение: ODBC Benchmark

Поиск
Список
Период
Сортировка

ODBC Benchmark

От
Mark Radulovich
Дата:
Just in case anyone is interested, I benchmarked PG 7 and NT/IIS yesterday. I
ran an .ASP script that inserted 2000 rows using ODBC(one numeric column, one
varchar(50)) into a PG 7.0.2 database running on a Redhat Linux 6.2 computer.

I ran into a few small problems, but they mostly had to do with the script
reloading before finishing. I got roungly 600,000 inserts in a 21 hour period -
that works out to 7.9 inserts per second!! Hardware is as follows:

Machine 1:        Machine 2:
==========        ==========
P400            P400
128 MB RAM        128 MB RAM
NT 4            RH Linux 6.2
IIS 4            PostgreSQL 7.02
IE 5

Note that although this test is not entirely scientific, it does show what PG7
is capable of.

Enjoy,
Mark 

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/


Re: ODBC Benchmark

От
Mark Radulovich
Дата:
7.9 inserts per second is ok. I reran the test twice though, using IIS/ASP and
eight clients (all doing 200 inserts) with the page automatically reloading
every 60 second, and got 16.8 inserts per second. This is probably due to a
timing issue somewhere, because it significantly exceeds (doubles) the original
script that ran on one client. I ran this script over a 14 hour period and got
roughly 900,000 inserts.

Finally, I wanted to see where the load was. I ran a similar PHP script on the
Linux box that ran PG7, and got a whopping 52.4 inserts per second (10,000
inserts in 3.18 minutes).

So the results would suggest that either IIS/ASP, the ODBC driver, or the
network is the bottleneck. However, we run a switched 100Mbit network, so I am
pretty sure that it isn't the network. My guess is the PSQLODBC driver (
Insight Distribution Systems, version 6.50.00.00). 

In any case, my test show one thing - PGSQL itself is NOT the limiting factor,
which was good news for me.

-Mark

--- Cedar Cox <cedarc@visionforisrael.com> wrote:
> 
> > I ran into a few small problems, but they mostly had to do with the script
> > reloading before finishing. I got roungly 600,000 inserts in a 21 hour
> period -
> > that works out to 7.9 inserts per second!! Hardware is as follows:
> 
> Now you've perked my curiosity.  Is this good or bad?  How does IIS
> compare?
> 
> -Cedar
> 
> 



__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/