Testing server 'PostgreSQL 6.5' at 1999-10-04 17:06:34 Testing the speed of inserting data into 1 table and do some selects on it. The tests are done with a table that has 100000 rows. Generating random keys Creating tables Inserting 100000 rows in order Inserting 100000 rows in reverse order Inserting 100000 rows in random order Time for insert (300000): 1014 wallclock secs (240.69 usr 16.49 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Testing insert of duplicates Time for insert_duplicates (300000): 114 wallclock secs (71.97 usr 5.22 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Retrieving data from the table Time for select_big (10:3000000): 86 wallclock secs (45.49 usr 0.50 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for order_by_key (10:3000000): 141 wallclock secs (45.97 usr 0.56 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for order_by (10:3000000): 140 wallclock secs (45.92 usr 0.64 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for select_diff_key (500:1000): 2 wallclock secs ( 0.47 usr 0.03 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Note: Query took longer then time-limit: 600 Estimating end time based on: 165 queries in 165 loops of 5000 loops took 656 seconds Estimated time for select_range_prefix (5000:1386): 19878 wallclock secs ( 5.76 usr 0.30 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Note: Query took longer then time-limit: 600 Estimating end time based on: 165 queries in 165 loops of 5000 loops took 656 seconds Estimated time for select_range (5000:1386): 19878 wallclock secs ( 6.67 usr 0.30 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for select_key_prefix (200000): 569 wallclock secs (176.28 usr 11.67 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for select_key (200000): 569 wallclock secs (176.40 usr 11.97 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Test of compares with simple ranges Note: Query took longer then time-limit: 600 Estimating end time based on: 800 queries in 20 loops of 500 loops took 631 seconds Estimated time for select_range_prefix (20000:1740): 15775 wallclock secs ( 9.25 usr 0.25 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Note: Query took longer then time-limit: 600 Estimating end time based on: 800 queries in 20 loops of 500 loops took 631 seconds Estimated time for select_range (20000:1740): 15775 wallclock secs ( 9.75 usr 0.75 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for select_group (111): 293 wallclock secs ( 0.11 usr 0.03 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Note: Query took longer then time-limit: 600 Estimating end time based on: 1404 queries in 234 loops of 500 loops took 602 seconds Estimated time for min_max_on_key (3000): 1286 wallclock secs ( 2.56 usr 0.06 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for min_max (60): 61 wallclock secs ( 0.08 usr 0.01 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for count_on_key (100): 128 wallclock secs ( 0.05 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for count (100): 133 wallclock secs ( 0.12 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Testing update of keys with functions Time for update_of_key (500): 3 wallclock secs ( 0.40 usr 0.05 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for update_of_key_big (501): 201 wallclock secs ( 0.42 usr 0.03 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Testing update with key Time for update_with_key (100000): 1466 wallclock secs (233.69 usr 17.60 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Testing update of all rows Time for update_big (500): 4993 wallclock secs ( 0.02 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Testing delete Time for delete_key (500): 26 wallclock secs ( 0.32 usr 0.02 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Time for delete_big (12): 3651 wallclock secs ( 0.01 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Insert into table with 7 keys and with a primary key with 7 parts Time for insert_key (100000): 894 wallclock secs (79.12 usr 6.49 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Testing update of keys Time for update_of_key (256): 1654 wallclock secs ( 0.15 usr 0.03 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Deleting everything from table Time for delete_big_many_keys (2): 14 wallclock secs ( 0.00 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU) Estimated total time: 88759 wallclock secs (1151.70 usr 73.02 sys + 0.00 cusr 0.00 csys = 0.00 CPU)