Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d4dd6aae
Commit
d4dd6aae
authored
Sep 27, 2000
by
monty@donna.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql into donna.mysql.com:/home/my/bk/mysql
parents
afbda7c1
0814ea21
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
162 additions
and
170 deletions
+162
-170
sql-bench/Results/ATIS-mysql-NT_4.0
sql-bench/Results/ATIS-mysql-NT_4.0
+8
-8
sql-bench/Results/RUN-mysql-NT_4.0
sql-bench/Results/RUN-mysql-NT_4.0
+69
-70
sql-bench/Results/alter-table-mysql-NT_4.0
sql-bench/Results/alter-table-mysql-NT_4.0
+7
-7
sql-bench/Results/big-tables-mysql-NT_4.0
sql-bench/Results/big-tables-mysql-NT_4.0
+6
-6
sql-bench/Results/connect-mysql-NT_4.0
sql-bench/Results/connect-mysql-NT_4.0
+10
-10
sql-bench/Results/create-mysql-NT_4.0
sql-bench/Results/create-mysql-NT_4.0
+1
-13
sql-bench/Results/insert-mysql-NT_4.0
sql-bench/Results/insert-mysql-NT_4.0
+38
-34
sql-bench/Results/select-mysql-NT_4.0
sql-bench/Results/select-mysql-NT_4.0
+13
-13
sql-bench/Results/wisconsin-mysql-NT_4.0
sql-bench/Results/wisconsin-mysql-NT_4.0
+5
-5
sql/mysqld.cc
sql/mysqld.cc
+5
-4
No files found.
sql-bench/Results/ATIS-mysql-NT_4.0
View file @
d4dd6aae
Testing server 'MySQL 3.23.2
3 beta' at 2000-09-01 1:23:52
Testing server 'MySQL 3.23.2
5 beta' at 2000-09-27 2:53:29
ATIS table test
Creating tables
Time for create_table (28): 0 wallclock secs ( 0.00 usr 0.0
0
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for create_table (28): 0 wallclock secs ( 0.00 usr 0.0
2
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Inserting data
Time to insert (9768): 5 wallclock secs ( 0.
69 usr 1.47
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to insert (9768): 5 wallclock secs ( 0.
86 usr 1.25
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Retrieving data
Time for select_simple_join (500): 4 wallclock secs ( 1.
47 usr 0.69
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_join (200): 22 wallclock secs (13.
20 usr 5.34
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_distinct (800): 17 wallclock secs ( 4.75 usr 1.7
0
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_group (2800):
19 wallclock secs ( 3.31 usr 0.98
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_simple_join (500): 4 wallclock secs ( 1.
75 usr 0.53
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_join (200): 22 wallclock secs (13.
38 usr 5.28
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_distinct (800): 17 wallclock secs ( 4.75 usr 1.7
8
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_group (2800):
21 wallclock secs ( 3.16 usr 1.13
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Removing tables
Time to drop_table (28): 0 wallclock secs ( 0.00 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 6
7 wallclock secs (23.42 usr 10.20
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 6
9 wallclock secs (23.89 usr 9.98
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
sql-bench/Results/RUN-mysql-NT_4.0
View file @
d4dd6aae
Benchmark DBD suite: 2.9
Date of test: 2000-09-
01 3:34:21
Date of test: 2000-09-
27 2:14:34
Running tests on: Windows NT Version 4.0
Arguments:
Comments:
Pentium 2x550 xeon, 550 Mhz, IDE
Comments:
2x Pentium III XEON 450MHZ, 512M
Limits from:
Server version: MySQL 3.23.2
3
beta
Server version: MySQL 3.23.2
5
beta
alter-table: Total time: 23
13 wallclock secs ( 0.84 usr 0.34
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
ATIS: Total time: 6
7 wallclock secs (23.42 usr 10.20
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
big-tables: Total time:
79 wallclock secs (18.42 usr 19.0
5 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
connect: Total time: 18
5 wallclock secs (59.45 usr 51.06
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
create:
Total time: 852 wallclock secs (14.36 usr 9.64 sys + 0.00 cusr 0.00 csys = 0.00 CPU
)
insert: Total time:
4332 wallclock secs (490.00 usr 278.16
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
select: Total time: 2
278 wallclock secs (313.80 usr 117.34
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
wisconsin: Total time: 28 wallclock secs (
7.91 usr 5.50
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
alter-table: Total time: 23
34 wallclock secs ( 0.75 usr 0.48
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
ATIS: Total time: 6
9 wallclock secs (23.89 usr 9.98
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
big-tables: Total time:
80 wallclock secs (17.56 usr 18.4
5 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
connect: Total time: 18
3 wallclock secs (59.48 usr 50.92
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
create:
Failed (output/create-mysql-NT_4.0
)
insert: Total time:
5829 wallclock secs (581.28 usr 317.09
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
select: Total time: 2
397 wallclock secs (317.05 usr 117.49
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
wisconsin: Total time: 28 wallclock secs (
8.19 usr 5.31
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
All 8 test executed successfully
Of 8 tests, 1 tests didn't work
Totals per operation:
Operation seconds usr sys cpu tests
alter_table_add 1228.00 0.55 0.17 0.00 992
alter_table_drop 1033.00 0.17 0.08 0.00 496
connect 33.00 11.69 10.25 0.00 10000
connect+select_1_row 39.00 11.72 12.45 0.00 10000
connect+select_simple 36.00 12.89 11.09 0.00 10000
count 39.00 0.14 0.03 0.00 100
count_distinct 75.00 1.13 0.31 0.00 1000
count_distinct_big 1223.00 223.30 83.02 0.00 1020
count_distinct_group 157.00 2.50 1.09 0.00 1000
count_distinct_group_on_key 40.00 0.81 0.23 0.00 1000
count_distinct_group_on_key_parts 158.00 2.78 1.14 0.00 1000
count_group_on_key_parts 40.00 2.53 0.92 0.00 1000
count_on_key 345.00 22.07 8.56 0.00 50100
create+drop 128.00 3.75 2.59 0.00 10000
create_MANY_tables 219.00 2.70 1.36 0.00 10000
create_index 25.00 0.00 0.00 0.00 8
create_key+drop 161.00 5.14 2.31 0.00 10000
create_table 0.00 0.00 0.00 0.00 31
delete_big 22.00 0.00 0.02 0.00 13
delete_big_many_keys 412.00 0.00 0.00 0.00 2
delete_key 7.00 0.73 1.13 0.00 10000
drop_index 27.00 0.00 0.00 0.00 8
alter_table_add 1242.00 0.42 0.17 0.00 992
alter_table_drop 1042.00 0.25 0.25 0.00 496
connect 32.00 10.92 11.08 0.00 10000
connect+select_1_row 38.00 12.33 12.44 0.00 10000
connect+select_simple 37.00 12.31 11.61 0.00 10000
count 39.00 0.06 0.02 0.00 100
count_distinct 97.00 0.97 0.36 0.00 1000
count_distinct_big 1209.00 225.82 83.41 0.00 1020
count_distinct_group 144.00 2.70 0.98 0.00 1000
count_distinct_group_on_key 54.00 0.61 0.23 0.00 1000
count_distinct_group_on_key_parts 144.00 2.44 1.28 0.00 1000
count_group_on_key_parts 47.00 2.34 0.75 0.00 1000
count_on_key 438.00 22.47 8.91 0.00 50100
create_index 26.00 0.00 0.00 0.00 8
create_table 0.00 0.00 0.02 0.00 31
delete_all 22.00 0.00 0.00 0.00 12
delete_all_many_keys 1498.00 0.02 0.01 0.00 1
delete_big 0.00 0.00 0.00 0.00 1
delete_big_many_keys 1498.00 0.02 0.01 0.00 128
delete_key 7.00 0.97 1.25 0.00 10000
drop_index 24.00 0.00 0.02 0.00 8
drop_table 0.00 0.00 0.00 0.00 28
drop_table_when_MANY_tables 153.00 1.09 1.41 0.00 10000
insert
236.00 34.70 45.91 0.00 350768
insert_
duplicates 59.00 8.80 11.75 0.00 3
00000
insert_
key 1434.00 14.73 12.73 0.00 100
000
insert_many_fields 21.00 0.82 0.31 0.00 200
0
min_max
18.00 0.03 0.02 0.00 6
0
m
in_max_on_key 180.00 36.53 14.18 0.00 85
000
multiple_value_insert 9.00 2.48 0.19 0.00 10000
0
order_by
98.00 62.34
25.09 0.00 10
o
rder_by_key 88.00 63.17 24.64
0.00 10
outer_join
118
.00 0.01 0.00 0.00 10
outer_join_
found 104.00 0.02 0.00 0.00 1
0
outer_join_
not_found 59.00 0.02 0.00 0.00 50
0
outer_join_on_key 40.00 0.00 0.01 0.00 1
0
select_
1_row 5.00 0.95 2.00
0.00 10000
select_
2_rows 5.00 1.30 1.92 0.00 1000
0
select_
big 145.00 81.09 35.81 0.00 1008
0
select_
column+column 6.00 1.11 1.64 0.00 100
00
select_di
ff_key 124.00 0.48 0.05 0.00 5
00
select_
distinct 17.00 4.75 1.70 0.00 800
select_
group 52.00 3.45 0.98 0.00 2911
select_
group_when_MANY_tables 191.00 1.67 1.97 0.00 1
0000
select_
join 22.00 13.20 5.34 0.00 2
00
select_key
201.00 92.67 41.2
3 0.00 200000
select_
key_prefix 200.00 92.94 38.81 0.00 200
000
select_
many_fields 56.00 17.60 18.74 0.00 200
0
select_range
219.00 37.55 12.72 0.00 2542
0
select_range_prefix 2
7.00 9.96 4.16
0.00 25010
select_simple 4.00
1.03 1.67
0.00 10000
select_simple_join 4.00 1.
47 0.69
0.00 500
update_big 6
8.00 0.02
0.00 0.00 500
update_of_key
490.00 4.80 6.55
0.00 756
update_of_key_big 34.00 0.0
5 0.06
0.00 501
update_with_key 18
8.00 26.88 40.5
9 0.00 100000
wisc_benchmark 9.00 5.
69 1.53
0.00 114
TOTALS 1
0131.00 928.00 491.15 0.00 1695468
insert 234.00 34.55 46.33 0.00 350768
insert
_duplicates 59.00 6.50 10.52 0.00 300000
insert_
key 1593.00 14.31 14.47 0.00 1
00000
insert_
many_fields 22.00 0.52 0.42 0.00 2
000
min_max 20.00 0.05 0.03 0.00 6
0
min_max
_on_key 211.00 37.06 13.64 0.00 8500
0
m
ultiple_value_insert 9.00 2.51 0.24 0.00 100
000
order_by 99.00 63.39 25.81 0.00 1
0
order_by
_key 89.00 63.61
25.09 0.00 10
o
uter_join 120.00 0.00 0.00
0.00 10
outer_join
_found 106
.00 0.01 0.00 0.00 10
outer_join_
not_found 55.00 0.00 0.00 0.00 50
0
outer_join_
on_key 40.00 0.00 0.00 0.00 1
0
select_1_row 5.00 1.13 1.70 0.00 1000
0
select_
2_rows 6.00 0.97 1.97
0.00 10000
select_
big 144.00 84.41 33.61 0.00 1008
0
select_
column+column 6.00 1.06 1.67 0.00 1000
0
select_
diff_key 123.00 0.39 0.08 0.00 5
00
select_di
stinct 17.00 4.75 1.78 0.00 8
00
select_
group 61.00 3.29 1.15 0.00 2911
select_
join 22.00 13.38 5.28 0.00 200
select_
key 193.00 92.27 38.89 0.00 20
0000
select_
key2 202.00 93.95 37.08 0.00 2000
00
select_key
_prefix 198.00 91.75 40.5
3 0.00 200000
select_
many_fields 55.00 17.05 18.03 0.00 2
000
select_
range 187.00 27.56 9.31 0.00 41
0
select_range
_key2 29.00 10.02 3.90 0.00 2501
0
select_range_prefix 2
8.00 10.74 3.92
0.00 25010
select_simple 4.00
0.86 1.70
0.00 10000
select_simple_join 4.00 1.
75 0.53
0.00 500
update_big 6
4.00 0.00
0.00 0.00 500
update_of_key
541.00 4.83 6.56
0.00 756
update_of_key_big 34.00 0.0
8 0.05
0.00 501
update_with_key 18
5.00 24.97 40.9
9 0.00 100000
wisc_benchmark 9.00 5.
80 1.64
0.00 114
TOTALS 1
2412.00 1008.17 519.72 0.00 1845595
sql-bench/Results/alter-table-mysql-NT_4.0
View file @
d4dd6aae
Testing server 'MySQL 3.23.2
3 beta' at 2000-09-01 0:45:18
Testing server 'MySQL 3.23.2
5 beta' at 2000-09-27 2:14:35
Testing of ALTER TABLE
Testing with 1000 columns and 1000 rows in 20 steps
Insert data into the table
Time for insert (1000) 0 wallclock secs ( 0.
13 usr 0.09
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for insert (1000) 0 wallclock secs ( 0.
06 usr 0.03
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for alter_table_add (992): 12
28 wallclock secs ( 0.55
usr 0.17 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for alter_table_add (992): 12
42 wallclock secs ( 0.42
usr 0.17 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for create_index (8): 2
5
wallclock secs ( 0.00 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for create_index (8): 2
6
wallclock secs ( 0.00 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for drop_index (8): 2
7 wallclock secs ( 0.00 usr 0.00
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for drop_index (8): 2
4 wallclock secs ( 0.00 usr 0.02
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for alter_table_drop (496): 10
33 wallclock secs ( 0.17 usr 0.08
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for alter_table_drop (496): 10
42 wallclock secs ( 0.25 usr 0.25
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 23
13 wallclock secs ( 0.84 usr 0.34
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 23
34 wallclock secs ( 0.75 usr 0.48
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
sql-bench/Results/big-tables-mysql-NT_4.0
View file @
d4dd6aae
Testing server 'MySQL 3.23.2
3 beta' at 2000-09-01 1:25:00
Testing server 'MySQL 3.23.2
5 beta' at 2000-09-27 2:54:38
Testing of some unusual tables
All tests are done 1000 times with 1000 fields
Testing table with 1000 fields
Testing select * from table with 1 record
Time to select_many_fields(1000):
20 wallclock secs ( 8.72 usr 9.24
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to select_many_fields(1000):
19 wallclock secs ( 8.08 usr 9.09
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing select all_fields from table with 1 record
Time to select_many_fields(1000): 36 wallclock secs ( 8.
88 usr 9.50
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to select_many_fields(1000): 36 wallclock secs ( 8.
97 usr 8.94
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing insert VALUES()
Time to insert_many_fields(1000): 3 wallclock secs ( 0.
66 usr 0.17
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to insert_many_fields(1000): 3 wallclock secs ( 0.
44 usr 0.09
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing insert (all_fields) VALUES()
Time to insert_many_fields(1000): 1
8 wallclock secs ( 0.16 usr 0.14
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to insert_many_fields(1000): 1
9 wallclock secs ( 0.08 usr 0.33
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time:
79 wallclock secs (18.42 usr 19.0
5 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time:
80 wallclock secs (17.56 usr 18.4
5 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
sql-bench/Results/connect-mysql-NT_4.0
View file @
d4dd6aae
Testing server 'MySQL 3.23.2
3 beta' at 2000-09-01 1:26:20
Testing server 'MySQL 3.23.2
5 beta' at 2000-09-27 2:55:59
Testing the speed of connecting to the server and sending of data
All tests are done 10000 times
Testing connection/disconnect
Time to connect (10000): 3
3 wallclock secs (11.69 usr 10.25
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to connect (10000): 3
2 wallclock secs (10.92 usr 11.08
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Test connect/simple select/disconnect
Time for connect+select_simple (10000): 3
6 wallclock secs (12.89 usr 11.09
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for connect+select_simple (10000): 3
7 wallclock secs (12.31 usr 11.61
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Test simple select
Time for select_simple (10000): 4 wallclock secs (
1.03 usr 1.67
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_simple (10000): 4 wallclock secs (
0.86 usr 1.70
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing connect/select 1 row from table/disconnect
Time to connect+select_1_row (10000): 3
9 wallclock secs (11.72 usr 12.45
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to connect+select_1_row (10000): 3
8 wallclock secs (12.33 usr 12.44
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing select 1 row from table
Time to select_1_row (10000): 5 wallclock secs (
0.95 usr 2.0
0 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to select_1_row (10000): 5 wallclock secs (
1.13 usr 1.7
0 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing select 2 rows from table
Time to select_2_rows (10000):
5 wallclock secs ( 1.30 usr 1.92
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to select_2_rows (10000):
6 wallclock secs ( 0.97 usr 1.97
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Test select with aritmetic (+)
Time for select_column+column (10000): 6 wallclock secs ( 1.
11 usr 1.64
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_column+column (10000): 6 wallclock secs ( 1.
06 usr 1.67
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing retrieval of big records (65000 bytes)
Time to select_big (10000): 5
7 wallclock secs (18.77 usr 10.03
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to select_big (10000): 5
5 wallclock secs (19.89 usr 8.75
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 18
5 wallclock secs (59.45 usr 51.06
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 18
3 wallclock secs (59.48 usr 50.92
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
sql-bench/Results/create-mysql-NT_4.0
View file @
d4dd6aae
Testing server 'MySQL 3.23.2
3 beta' at 2000-09-01 1:29:26
Testing server 'MySQL 3.23.2
5 beta' at 2000-09-27 2:59:02
Testing the speed of creating and droping tables
Testing with 10000 tables and 10000 loop count
Testing create of tables
Time for create_MANY_tables (10000): 219 wallclock secs ( 2.70 usr 1.36 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Accessing tables
Time to select_group_when_MANY_tables (10000): 191 wallclock secs ( 1.67 usr 1.97 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing drop
Time for drop_table_when_MANY_tables (10000): 153 wallclock secs ( 1.09 usr 1.41 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing create+drop
Time for create+drop (10000): 128 wallclock secs ( 3.75 usr 2.59 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for create_key+drop (10000): 161 wallclock secs ( 5.14 usr 2.31 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 852 wallclock secs (14.36 usr 9.64 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
sql-bench/Results/insert-mysql-NT_4.0
View file @
d4dd6aae
Testing server 'MySQL 3.23.2
3 beta' at 2000-09-01 1:43:39
Testing server 'MySQL 3.23.2
5 beta' at 2000-09-27 2:59:03
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.
...
...
@@ -8,63 +8,67 @@ Creating tables
Inserting 100000 rows in order
Inserting 100000 rows in reverse order
Inserting 100000 rows in random order
Time for insert (300000): 20
6 wallclock secs (30.56 usr 39.33
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for insert (300000): 20
3 wallclock secs (30.05 usr 40.38
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing insert of duplicates
Time for insert_duplicates (300000): 59 wallclock secs (
8.80 usr 11.75
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for insert_duplicates (300000): 59 wallclock secs (
6.50 usr 10.52
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Retrieving data from the table
Time for select_big (10:3000000): 87 wallclock secs (61.98 usr 25.58 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for order_by_key (10:3000000): 88 wallclock secs (63.17 usr 24.64 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for order_by (10:3000000): 98 wallclock secs (62.34 usr 25.09 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_diff_key (500:1000): 124 wallclock secs ( 0.48 usr 0.05 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range_prefix (5010:42084): 14 wallclock secs ( 4.63 usr 1.80 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range (5010:42084): 16 wallclock secs ( 4.67 usr 1.58 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_key_prefix (200000): 200 wallclock secs (92.94 usr 38.81 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_key (200000): 201 wallclock secs (92.67 usr 41.23 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_big (10:3000000): 88 wallclock secs (64.08 usr 24.75 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for order_by_key (10:3000000): 89 wallclock secs (63.61 usr 25.09 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for order_by (10:3000000): 99 wallclock secs (63.39 usr 25.81 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_diff_key (500:1000): 123 wallclock secs ( 0.39 usr 0.08 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range_prefix (5010:42084): 15 wallclock secs ( 5.30 usr 1.48 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range_key2 (5010:42084): 16 wallclock secs ( 4.69 usr 1.74 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_key_prefix (200000): 198 wallclock secs (91.75 usr 40.53 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_key (200000): 193 wallclock secs (92.27 usr 38.89 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_key2 (200000): 202 wallclock secs (93.95 usr 37.08 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Test of compares with simple ranges
Time for select_range_prefix (20000:43500): 13 wallclock secs ( 5.
33 usr 2.36
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range
(20000:43500): 14 wallclock secs ( 5.75 usr 2.14
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_group (111):
33 wallclock secs ( 0.14 usr 0.00
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for min_max_on_key (15000): 14 wallclock secs ( 6.51 usr 2.
45
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for min_max (60):
18 wallclock secs ( 0.03 usr 0.02
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_on_key (100):
25 wallclock secs ( 0.01 usr 0.00
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count (100): 39 wallclock secs ( 0.
14 usr 0.03
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_big (20): 9
8 wallclock secs ( 0.03
usr 0.02 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range_prefix (20000:43500): 13 wallclock secs ( 5.
44 usr 2.44
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range
_key2 (20000:43500): 13 wallclock secs ( 5.33 usr 2.16
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_group (111):
40 wallclock secs ( 0.13 usr 0.02
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for min_max_on_key (15000): 14 wallclock secs ( 6.51 usr 2.
50
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for min_max (60):
20 wallclock secs ( 0.05 usr 0.03
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_on_key (100):
36 wallclock secs ( 0.05 usr 0.02
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count (100): 39 wallclock secs ( 0.
06 usr 0.02
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_big (20): 9
2 wallclock secs ( 0.05
usr 0.02 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing update of keys with functions
Time for update_of_key (500): 6
3 wallclock secs ( 4.78 usr 6.47
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for update_of_key_big (501): 34 wallclock secs ( 0.0
5 usr 0.06
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for update_of_key (500): 6
2 wallclock secs ( 4.77 usr 6.50
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for update_of_key_big (501): 34 wallclock secs ( 0.0
8 usr 0.05
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing update with key
Time for update_with_key (100000): 18
8 wallclock secs (26.88 usr 40.5
9 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for update_with_key (100000): 18
5 wallclock secs (24.97 usr 40.9
9 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing update of all rows
Time for update_big (500): 6
8 wallclock secs ( 0.02
usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for update_big (500): 6
4 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): 40 wallclock secs ( 0.00 usr 0.0
1
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for outer_join (10:10): 1
18 wallclock secs ( 0.01
usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for outer_join_found (10:10): 10
4 wallclock secs ( 0.02
usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for outer_join_not_found (500:10): 5
9 wallclock secs ( 0.02
usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for outer_join_on_key (10:10): 40 wallclock secs ( 0.00 usr 0.0
0
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for outer_join (10:10): 1
20 wallclock secs ( 0.00
usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for outer_join_found (10:10): 10
6 wallclock secs ( 0.01
usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for outer_join_not_found (500:10): 5
5 wallclock secs ( 0.00
usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing delete
Time for delete_key (10000): 7 wallclock secs ( 0.
73 usr 1.13
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for delete_
big (12): 21 wallclock secs ( 0.00 usr 0.02
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for delete_key (10000): 7 wallclock secs ( 0.
97 usr 1.25
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for delete_
all (12): 22 wallclock secs ( 0.00 usr 0.00
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Insert into table with 16 keys and with a primary key with 16 parts
Time for insert_key (100000): 1
434 wallclock secs (14.73 usr 12.73
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for insert_key (100000): 1
593 wallclock secs (14.31 usr 14.47
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing update of keys
Time for update_of_key (256): 427 wallclock secs ( 0.02 usr 0.08 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for update_of_key (256): 479 wallclock secs ( 0.06 usr 0.06 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Deleting rows from the table
Time for delete_big_many_keys (128): 1498 wallclock secs ( 0.02 usr 0.01 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Deleting everything from table
Time for delete_
big_many_keys (2): 412 wallclock secs ( 0.00 usr 0.00
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for delete_
all_many_keys (1): 1498 wallclock secs ( 0.02 usr 0.01
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Inserting 100000 rows with multiple values
Time for multiple_value_insert (100000): 9 wallclock secs ( 2.
48 usr 0.19
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for multiple_value_insert (100000): 9 wallclock secs ( 2.
51 usr 0.24
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for drop table(1): 0 wallclock secs ( 0.00 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time:
4332 wallclock secs (490.00 usr 278.16
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time:
5829 wallclock secs (581.28 usr 317.09
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
sql-bench/Results/select-mysql-NT_4.0
View file @
d4dd6aae
Testing server 'MySQL 3.23.2
3 beta' at 2000-09-01 2:55:53
Testing server 'MySQL 3.23.2
5 beta' at 2000-09-27 4:36:14
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): 7 wallclock secs ( 1.2
3 usr 1.14
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to insert (10000): 7 wallclock secs ( 1.2
5 usr 1.03
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing big selects on the table
Time for select_big (70:17207): 1 wallclock secs ( 0.
34 usr 0.20
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range (410:1057904): 18
9 wallclock secs (27.13 usr 9.00
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for min_max_on_key (70000): 1
66 wallclock secs (30.02 usr 11.73
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_on_key (50000):
320 wallclock secs (22.06 usr 8.56
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_big (70:17207): 1 wallclock secs ( 0.
44 usr 0.11
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for select_range (410:1057904): 18
7 wallclock secs (27.56 usr 9.31
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for min_max_on_key (70000): 1
97 wallclock secs (30.55 usr 11.14
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_on_key (50000):
402 wallclock secs (22.42 usr 8.89
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_group_on_key_parts (1000:0): 4
0 wallclock secs ( 2.53 usr 0.92
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_group_on_key_parts (1000:0): 4
7 wallclock secs ( 2.34 usr 0.75
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Testing count(distinct) on the table
Time for count_distinct (1000:2000):
75 wallclock secs ( 1.13 usr 0.31
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_group_on_key (1000:6000):
40 wallclock secs ( 0.8
1 usr 0.23 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_group_on_key_parts (1000:100000): 1
58 wallclock secs ( 2.78 usr 1.14
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_group (1000:100000): 1
57 wallclock secs ( 2.50 usr 1.09
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_big (1000:10000000): 11
25 wallclock secs (223.27 usr 83.00
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 2
278 wallclock secs (313.80 usr 117.34
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct (1000:2000):
97 wallclock secs ( 0.97 usr 0.36
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_group_on_key (1000:6000):
54 wallclock secs ( 0.6
1 usr 0.23 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_group_on_key_parts (1000:100000): 1
44 wallclock secs ( 2.44 usr 1.28
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_group (1000:100000): 1
44 wallclock secs ( 2.70 usr 0.98
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for count_distinct_big (1000:10000000): 11
17 wallclock secs (225.77 usr 83.39
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 2
397 wallclock secs (317.05 usr 117.49
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
sql-bench/Results/wisconsin-mysql-NT_4.0
View file @
d4dd6aae
Testing server 'MySQL 3.23.2
3 beta' at 2000-09-01 3:33:5
1
Testing server 'MySQL 3.23.2
5 beta' at 2000-09-27 5:16:1
1
Wisconsin benchmark test
Time for create_table (3): 0 wallclock secs ( 0.00 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Inserting data
Time to insert (31000): 1
8 wallclock secs ( 2.22 usr 3.9
7 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to delete_big (1):
1
wallclock secs ( 0.00 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to insert (31000): 1
9 wallclock secs ( 2.39 usr 3.6
7 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time to delete_big (1):
0
wallclock secs ( 0.00 usr 0.00 sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Running actual benchmark
Time for wisc_benchmark (114): 9 wallclock secs ( 5.
69 usr 1.53
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Time for wisc_benchmark (114): 9 wallclock secs ( 5.
80 usr 1.64
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 28 wallclock secs (
7.91 usr 5.50
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
Total time: 28 wallclock secs (
8.19 usr 5.31
sys + 0.00 cusr 0.00 csys = 0.00 CPU)
sql/mysqld.cc
View file @
d4dd6aae
...
...
@@ -558,6 +558,7 @@ static sig_handler print_signal_warning(int sig)
void
unireg_end
(
int
signal_number
__attribute__
((
unused
)))
{
(
void
)
my_delete
(
pidfile_name
,
MYF
(
0
));
// This may not always exist
clean_up
();
pthread_exit
(
0
);
// Exit is in main thread
}
...
...
@@ -1435,8 +1436,8 @@ int main(int argc, char **argv)
uint
files
=
set_maximum_open_files
(
wanted_files
);
if
(
files
&&
files
<
wanted_files
)
// Some systems return 0
{
max_connections
=
(
ulong
)
(
files
-
10
)
/
5
;
table_cache_size
=
(
ulong
)
(
files
-
10
-
max_connections
)
/
2
;
max_connections
=
(
ulong
)
min
((
files
-
10
),
max_connections
)
;
table_cache_size
=
(
ulong
)
max
((
files
-
10
-
max_connections
)
/
2
,
64
)
;
DBUG_PRINT
(
"warning"
,
(
"Changed limits: max_connections: %ld table_cache: %ld"
,
max_connections
,
table_cache_size
));
...
...
@@ -1682,7 +1683,7 @@ int main(int argc, char **argv)
}
(
void
)
pthread_mutex_unlock
(
&
LOCK_thread_count
);
#ifndef __WIN__
(
void
)
my_delete
(
pidfile_name
,
MYF
(
MY_WME
));
// Not neaded anymore
(
void
)
my_delete
(
pidfile_name
,
MYF
(
0
));
// Not neaded anymore
#endif
my_thread_end
();
exit
(
0
);
...
...
@@ -2200,7 +2201,7 @@ enum options {
OPT_REPLICATE_DO_DB
,
OPT_REPLICATE_IGNORE_DB
,
OPT_LOG_SLAVE_UPDATES
,
OPT_BINLOG_DO_DB
,
OPT_BINLOG_IGNORE_DB
,
OPT_WANT_CORE
,
OPT_SKIP_CONCURRENT_INSERT
,
OPT_MEMLOCK
,
OPT_MYISAM_RECOVER
,
OPT_SKIP_CONCURRENT_INSERT
,
OPT_MEMLOCK
,
OPT_MYISAM_RECOVER
};
static
struct
option
long_options
[]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment