Hi,

I was running the test-select under the /usr/local/mysql/sql-bench dir and was 
wondering if someone could help break it down for me ( Or at least the "Testing big 
selects on the table" section ) Thanks :

[EMAIL PROTECTED] sql-bench]# perl test-select --password='ddddd'                      
                                                                       
Testing server 'MySQL 4.0.20 standard log' at 2004-05-27  8:29:45
 
Testing the speed of selecting on keys that consist of many parts
The test-table has 10000 rows and the test is done with 500 ranges.
 
Creating table
Inserting 10000 rows
Time to insert (10000): 17 wallclock secs ( 0.28 usr  0.13 sys +  0.00 cusr  0.00 csys 
=  0.41 CPU)
 
Test if the database has a query cache
Time for select_cache (10000):  3 wallclock secs ( 1.84 usr  0.20 sys +  0.00 cusr  
0.00 csys =  2.04 CPU)
 
Time for select_cache2 (10000): 64 wallclock secs ( 2.29 usr  0.32 sys +  0.00 cusr  
0.00 csys =  2.61 CPU)
 
Testing big selects on the table
Time for select_big (70:17207):  1 wallclock secs ( 0.22 usr  0.04 sys +  0.00 cusr  
0.00 csys =  0.26 CPU)
Time for select_range (410:1057904): 19 wallclock secs (13.03 usr  1.86 sys +  0.00 
cusr  0.00 csys = 14.89 CPU)
Time for min_max_on_key (70000): 17 wallclock secs (13.88 usr  1.18 sys +  0.00 cusr  
0.00 csys = 15.06 CPU)
Time for count_on_key (50000): 12 wallclock secs ( 9.78 usr  0.94 sys +  0.00 cusr  
0.00 csys = 10.72 CPU)
 
Time for count_group_on_key_parts (1000:100000):  2 wallclock secs ( 1.40 usr  0.12 
sys +  0.00 cusr  0.00 csys =  1.52 CPU)
Testing count(distinct) on the table
Time for count_distinct_key_prefix (1000:1000):  0 wallclock secs ( 0.18 usr  0.03 sys 
+  0.00 cusr  0.00 csys =  0.21 CPU)
Time for count_distinct (1000:1000):  0 wallclock secs ( 0.23 usr  0.01 sys +  0.00 
cusr  0.00 csys =  0.24 CPU)
Time for count_distinct_2 (1000:1000):  1 wallclock secs ( 0.24 usr  0.02 sys +  0.00 
cusr  0.00 csys =  0.26 CPU)
Time for count_distinct_group_on_key (1000:6000):  0 wallclock secs ( 0.27 usr  0.02 
sys +  0.00 cusr  0.00 csys =  0.29 CPU)
Time for count_distinct_group_on_key_parts (1000:100000):  3 wallclock secs ( 1.34 usr 
 0.22 sys +  0.00 cusr  0.00 csys =  1.56 CPU)
Time for count_distinct_group (1000:100000):  2 wallclock secs ( 1.44 usr  0.11 sys +  
0.00 cusr  0.00 csys =  1.55 CPU)
Time for count_distinct_big (100:1000000): 15 wallclock secs (11.96 usr  1.52 sys +  
0.00 cusr  0.00 csys = 13.48 CPU)
Total time: 156 wallclock secs (58.39 usr  6.73 sys +  0.00 cusr  0.00 csys = 65.12 
CPU)




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to