Testing server 'PostgreSQL version 7.1.2' at 2001-06-12  4:22:08

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): 304 wallclock secs (88.91 usr 24.12 sys +  0.00 cusr  0.00 csys = 113.03 CPU)

Testing insert of duplicates
Time for insert_duplicates (100000): 120 wallclock secs (29.00 usr 13.77 sys +  0.00 cusr  0.00 csys = 42.77 CPU)

Retrieving data from the table
Time for select_big (10:3000000): 61 wallclock secs (22.36 usr  3.32 sys +  0.00 cusr  0.00 csys = 25.68 CPU)
Time for order_by_big_key (10:3000000): 145 wallclock secs (26.12 usr  1.23 sys +  0.00 cusr  0.00 csys = 27.35 CPU)
Time for order_by_big_key_desc (10:3000000): 145 wallclock secs (25.80 usr  1.41 sys +  0.00 cusr  0.00 csys = 27.21 CPU)
Time for order_by_big_key_prefix (10:3000000): 132 wallclock secs (22.46 usr  0.83 sys +  0.00 cusr  0.00 csys = 23.29 CPU)
Time for order_by_big_key2 (10:3000000): 133 wallclock secs (22.62 usr  0.93 sys +  0.00 cusr  0.00 csys = 23.55 CPU)
Time for order_by_big_key_diff (10:3000000): 139 wallclock secs (22.46 usr  0.67 sys +  0.00 cusr  0.00 csys = 23.13 CPU)
Time for order_by_big (10:3000000): 146 wallclock secs (22.57 usr  0.64 sys +  0.00 cusr  0.00 csys = 23.21 CPU)
Time for order_by_range (500:125750):  4 wallclock secs ( 1.11 usr  0.04 sys +  0.00 cusr  0.00 csys =  1.15 CPU)
Time for order_by_key_prefix (500:125750):  4 wallclock secs ( 1.12 usr  0.06 sys +  0.00 cusr  0.00 csys =  1.18 CPU)
Time for order_by_key2_diff (500:250500):  7 wallclock secs ( 2.09 usr  0.04 sys +  0.00 cusr  0.00 csys =  2.13 CPU)
Time for select_diff_key (500:1000):  0 wallclock secs ( 0.16 usr  0.02 sys +  0.00 cusr  0.00 csys =  0.18 CPU)
Note: Query took longer then time-limit: 600
Estimating end time based on:
195 queries in 195 loops of 5010 loops took 627 seconds
Estimated time for select_range_prefix (5010:1638): 16109 wallclock secs ( 2.83 usr  0.00 sys +  0.00 cusr  0.00 csys =  2.83 CPU)
Note: Query took longer then time-limit: 600
Estimating end time based on:
195 queries in 195 loops of 5010 loops took 626 seconds
Estimated time for select_range_key2 (5010:1638): 16083 wallclock secs ( 1.80 usr  0.00 sys +  0.00 cusr  0.00 csys =  1.80 CPU)
Time for select_key_prefix (200000): 210 wallclock secs (67.51 usr  8.60 sys +  0.00 cusr  0.00 csys = 76.11 CPU)
Time for select_key (200000): 245 wallclock secs (69.03 usr  8.64 sys +  0.00 cusr  0.00 csys = 77.67 CPU)
Time for select_key_return_key (200000): 240 wallclock secs (67.26 usr  8.61 sys +  0.00 cusr  0.00 csys = 75.87 CPU)
Time for select_key2 (200000): 209 wallclock secs (67.94 usr  8.08 sys +  0.00 cusr  0.00 csys = 76.02 CPU)
Time for select_key2_return_key (200000): 201 wallclock secs (63.19 usr  8.05 sys +  0.00 cusr  0.00 csys = 71.24 CPU)
Time for select_key2_return_prim (200000): 204 wallclock secs (64.84 usr  7.89 sys +  0.00 cusr  0.00 csys = 72.73 CPU)

Test of compares with simple ranges
Note: Query took longer then time-limit: 600
Estimating end time based on:
2080 queries in 52 loops of 500 loops took 612 seconds
Estimated time for select_range_prefix (20000:4524): 5884 wallclock secs ( 3.37 usr  0.48 sys +  0.00 cusr  0.00 csys =  3.85 CPU)
Note: Query took longer then time-limit: 600
Estimating end time based on:
2040 queries in 51 loops of 500 loops took 601 seconds
Estimated time for select_range_key2 (20000:4437): 5892 wallclock secs ( 4.02 usr  0.10 sys +  0.00 cusr  0.00 csys =  4.12 CPU)
Time for select_group (111): 272 wallclock secs ( 0.03 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.03 CPU)
Note: Query took longer then time-limit: 600
Estimating end time based on:
1410 queries in 235 loops of 2500 loops took 602 seconds
Estimated time for min_max_on_key (15000): 6404 wallclock secs ( 4.36 usr  0.96 sys +  0.00 cusr  0.00 csys =  5.32 CPU)
Time for min_max (60): 59 wallclock secs ( 0.03 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.03 CPU)
Time for count_on_key (100): 114 wallclock secs ( 0.00 usr  0.01 sys +  0.00 cusr  0.00 csys =  0.01 CPU)
Time for count (100): 131 wallclock secs ( 0.06 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.06 CPU)
Time for count_distinct_big (20): 203 wallclock secs ( 0.01 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.01 CPU)

Testing update of keys with functions
Time for update_of_key (50000):  119 wallclock secs (16.20 usr 10.81 sys +  0.00 cusr  0.00 csys = 27.01 CPU)
Time for update_of_key_big (501): 333 wallclock secs ( 0.21 usr  0.21 sys +  0.00 cusr  0.00 csys =  0.42 CPU)

Testing update with key
Time for update_with_key (300000):  567 wallclock secs (90.20 usr 25.08 sys +  0.00 cusr  0.00 csys = 115.28 CPU)
Time for update_with_key_prefix (100000):  244 wallclock secs (29.03 usr  5.64 sys +  0.00 cusr  0.00 csys = 34.67 CPU)

Testing update of all rows
Time for update_big (10):  6612 wallclock secs ( 0.00 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.00 CPU)

Testing left outer join
Time for outer_join_on_key (10:10):  3961 wallclock secs ( 0.00 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.00 CPU)
Time for outer_join (10:10):  4093 wallclock secs ( 0.00 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.00 CPU)
Time for outer_join_found (10:10):  4086 wallclock secs ( 0.00 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.00 CPU)
Note: Query took longer then time-limit: 600
Estimating end time based on:
2 queries in 2 loops of 500 loops took 814 seconds
Estimated time for outer_join_not_found (500:500):  203500 wallclock secs ( 0.00 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.00 CPU)

Testing INSERT INTO ... SELECT
Time for insert_select_1_key (1):  111 wallclock secs ( 0.00 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.00 CPU)
Time for insert_select_2_keys (1):  180 wallclock secs ( 0.00 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.00 CPU)
Time for drop table(2): 18 wallclock secs ( 0.00 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.00 CPU)

Testing delete
Time for delete_key (10000): 136 wallclock secs ( 3.08 usr  0.59 sys +  0.00 cusr  0.00 csys =  3.67 CPU)
Time for delete_all (12): 3191 wallclock secs ( 0.01 usr  0.00 sys +  0.00 cusr  0.00 csys =  0.01 CPU)

Insert into table with 16 keys and with a primary key with 16 parts
Time for insert_key (100000): 907 wallclock secs (45.53 usr 60.49 sys +  0.00 cusr  0.00 csys = 106.02 CPU)

Testing update of keys
Time for update_of_primary_key_many_keys (256): 6813 wallclock secs ( 0.13 usr  0.02 sys +  0.00 cusr  0.00 csys =  0.15 CPU)

Deleting rows from the table
Time for delete_big_many_keys (128): 118 wallclock secs ( 0.05 usr  0.04 sys +  0.00 cusr  0.00 csys =  0.09 CPU)

Deleting everything from table
Time for delete_all_many_keys (1): 118 wallclock secs ( 0.05 usr  0.04 sys +  0.00 cusr  0.00 csys =  0.09 CPU)

Estimated total time: 288864 wallclock secs (887.56 usr 201.43 sys +  0.00 cusr  0.00 csys = 1088.99 CPU)
