SlideShare a Scribd company logo
Compare mysql5.1.50 with
      mysql5.5.8
        Philip zhong
         2011-1-5
Prepare the testing environment
Machine configuration information
•   Intel(R) Xeon(R) E5620 X86-64
•   2 CPU x 8 Cores/CPU
•   Linux 2.6.9
•   2.40GHz, 32 GB RAM
•   CentOS release 5.3
•   Disk:hdparm -t /dev/sdc2=212.19 MB/sec
•   Mysql5.1.50 and Mysql5.5.8 are installed on
    the same machine
Install MYSQL5.1.50
export MYSQL_HOME=/home/oracle/mysql5.1.50
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3" ./configure 
--prefix=$MYSQL_HOME --with-extra-charsets=latin1,gbk,utf8 
--with-plugins=partition,heap,innobase,myisam,innodb_plugin 
--enable-assembler 
--enable-thread-safe-client 
--without-debug 
--without-plugin-daemon_example 
--without-plugin-ftexample 
--without-plugin-archive 
--without-plugin-blackhole 
--without-plugin-example 
--without-plugin-federated 
--without-plugin-ibmdb2i 
--without-plugin-ndbcluster 
--with-mysqld-user=oracle 
--with-server-suffix=-webex
--with-unix-socket-path=$MYSQL_HOME/run/mysql.sock
Install MYSQL5.5.8
export MYSQL_HOME="/home/oracle/mysql5.5.8"
export MYSQL_DATA_HOME="/data/mysql5.5.8/datacenter"
cmake . 
-DCMAKE_INSTALL_PREFIX=$MYSQL_HOME 
-DINSTALL_LAYOUT=STANDALONE 
-DMYSQL_DATADIR=$MYSQL_DATA_HOME 
-DWITH_PARTITION_STORAGE_ENGINE=1 
-DWITH_INNOBASE_STORAGE_ENGINE=1 
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 
-DWITHOUT_FEDERATED_STORAGE_ENGINE=1 
-DENABLE_DEBUG_SYNC=OFF 
-DENABLE_DOWNLOADS=OFF 
-DENABLE_DTRACE=OFF 
-DENABLED_LOCAL_INFILE=OFF 
-DENABLED_PROFILING=ON 
-DMYSQL_MAINTAINER_MODE=OFF 
-DMYSQL_UNIX_ADDR=$MYSQL_HOME/run/mysql.sock 
-DMYSQL_TCP_PORT=3306 
-DWITH_COMMENT="mysql 5.5.8 on linux2.6 for webex" 
-DWITH_DEBUG=OFF 
-DWITH_EMBEDDED_SERVER=OFF
-DWITH_EXTRA_CHARSETS=ALL 
-DWITH_UNIT_TESTS=OFF 
-LH
Install SYSBENCH0.4.12
./configure --prefix=/opt/sysbench_mysql50/ --
   with-mysql-
   includes=/home/oracle/mysql5.1.50/include/mys
   ql/ --with-mysql-
   libs=/home/oracle/mysql5.1.50/lib/mysql

./configure --prefix=/opt/sysbench_mysql55/ --
   with-mysql-
   includes=/home/oracle/mysql5.5.8/include/ --
   with-mysql-libs=/home/oracle/mysql5.5.8/lib/
MYSQL5.1.50 plug-in configurations
default-storage-engine = INNODB
ignore-builtin-innodb
plugin-
    load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so;innodb_locks=ha_innodb_p
    lugin.so;innodb_lock_waits=ha_innodb_plugin.so;innodb_cmp=ha_innodb_plugin.so;innodb_cm
    p_reset=ha_innodb_plugin.so;innodb_cmpmem=ha_innodb_plugin.so;innodb_cmpmem_reset=h
    a_innodb_plugin.so
innodb_flush_method = O_DIRECT
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 15
innodb_additional_mem_pool_size = 20M
innodb_buffer_pool_size = 1024M
innodb_log_buffer_size= 10M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
innodb_thread_concurrency = 16
innodb_write_io_threads = 8
innodb_read_io_threads = 8
innodb_max_dirty_pages_pct = 70
transaction-isolation = READ-COMMITTED
innodb_file_format=Barracuda
MYSQL5.1.50 built-in configurations
default-storage-engine = INNODB
innodb_flush_method = O_DIRECT
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 15
innodb_additional_mem_pool_size = 20M
innodb_buffer_pool_size = 1024M
innodb_log_buffer_size= 10M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
innodb_thread_concurrency = 16
innodb_max_dirty_pages_pct = 70
transaction-isolation = READ-COMMITTED
MYSQL5.5.8 configurations
default-storage-engine = INNODB
innodb_flush_method = O_DIRECT
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 15
innodb_additional_mem_pool_size = 20M
innodb_buffer_pool_size = 1024M
innodb_log_buffer_size= 10M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
innodb_thread_concurrency = 16
innodb_write_io_threads = 8
innodb_read_io_threads = 8
innodb_max_dirty_pages_pct =70
transaction-isolation = READ-COMMITTED
innodb_file_format=Barracuda
Test without concurrency for
 mysql5.1.50 and mysql5.5.8
MYSQL without concurrency
item name        Mysql5.1.50 built-in    Mysql5.1.50 plug-in    Mysql5.5.8
Insert with      53.19 sec               53.33 sec              1 min 1.00 sec
10000000
records
Add a column     1000000 rows affected   1000000 rows           1000000 rows
                 (13.00 sec)             affected (12.03 sec)   affected (12.47sec)

Create a index   1000000 rows affected   0 rows affected        0 rows affected
                 (19.24 sec)             (16.38 sec)            (18.51 sec)

Drop a index     1000000 rows affected    0 rows affected       0 rows affected (0.46
                 (13.50 sec)             (0.46 sec)             sec)

Drop a column 1000000 rows affected      1000000 rows           1000000 rows
              (20.00 sec)                affected (19.04 sec)   affected (19.78 sec)
Create the tables script
CREATE TABLE test_without_concurrency (
  id int(10) unsigned NOT NULL,
  k int(10) unsigned NOT NULL DEFAULT '0',
  c char(120) NOT NULL DEFAULT '',
  pad char(60) NOT NULL DEFAULT '',
  PRIMARY KEY (id),
  KEY k (k)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Insert data script
DELIMITER //
CREATE PROCEDURE insert_data_WITHOUT_CONCURRENCY()
BEGIN
   DECLARE vCount      bigint(12) DEFAULT 1;
   DECLARE vK        bigint(12) DEFAULT 1;
   DECLARE vbuyerName varchar(128) DEFAULT '0bPhilip';
     DECLARE vSellerName varchar(128) DEFAULT '0sPhilip';
   SET AUTOCOMMIT=0;
   WHILE vCount<=1000000 DO
   INSERT INTO TEST_WITHOUT_CONCURRENCY (id,k,c,pad)
   VALUES(vCount,vK,vSellerName,vbuyerName);
    set vCount=vCount+1;
    IF MOD(vCount,5000)=0 THEN
      set vK=vK+1;
      set vbuyerName=concat(vCount,'bPhilip');
      set vSellerName=concat(vCount,'sPhilip');
      COMMIT;
    END IF;
   END WHILE;
   COMMIT;
END;
//
DELIMITER ;
Call insert_data_WITHOUT_CONCURRENCY();
DDL operation scripts
1.alter table TEST_WITHOUT_CONCURRENCY
  add column philip_test varchar(100);
2.Create index ind_c on
  TEST_WITHOUT_CONCURRENCY(c);
3.Alter table TEST_WITHOUT_CONCURRENCY
  drop column philip_test ;
4. Alter table TEST_WITHOUT_CONCURRENCY
  drop index ind_c ;
Test with concurrency for mysql5.1.50
           and mysql5.5.8
MYSQL with concurrency
Insert data script
--5.1.50(plug-in and built-in)
cd /opt/sysbench_mysql50/bin
./sysbench --test=oltp 
   --mysql-host=10.224.56.188 
       --mysql-user=test --mysql-password=pass --mysql-port=3307 
       --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb
    
       --oltp-table-name=test_with_concurrency --num-threads=16 prepare
--5.5.8
cd /opt/sysbench_mysql55/bin
./sysbench --test=oltp 
   --mysql-host=10.224.56.188 
       --mysql-user=test --mysql-password=pass --mysql-port=3306 
       --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb
    
       --oltp-table-name=test_with_concurrency --num-threads=16 prepare
Test script(1)
--5.1.50(plug-in and built-in)
./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session 
      --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 
      --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 
      --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select 
      --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 
      --db-ps-mode=auto --debug=off --test=oltp 
      --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307
      --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb 
      --oltp-table-name=test_with_concurrency --num-threads=4 --max-requests=10000 --oltp-auto-inc=off 
      --mysql-engine-trx=yes run

./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session 
     --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 
     --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 
     --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select 
     --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 
     --db-ps-mode=auto --debug=off --test=oltp 
     --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307
     --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb 
     --oltp-table-name=test_with_concurrency --num-threads=8 --max-requests=10000 --oltp-auto-inc=off 
     --mysql-engine-trx=yes run
Test script(2)
--5.5.8
./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session 
      --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 
      --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 
      --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select 
      --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 
      --db-ps-mode=auto --debug=off --test=oltp 
      --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306
      --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb 
      --oltp-table-name=test_with_concurrency --num-threads=4 --max-requests=10000 --oltp-auto-inc=off 
      --mysql-engine-trx=yes run

./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session 
     --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 
     --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 
     --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select 
     --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 
     --db-ps-mode=auto --debug=off --test=oltp 
     --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306
     --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb 
     --oltp-table-name=test_with_concurrency --num-threads=8 --max-requests=10000 --oltp-auto-inc=off 
     --mysql-engine-trx=yes run
Compare mysql5.1.50 mysql5.5.8

More Related Content

What's hot (20)

PDF
Prometheus Storage
Fabian Reinartz
 
PDF
The Ring programming language version 1.6 book - Part 71 of 189
Mahmoud Samir Fayed
 
PDF
Deep dive into PostgreSQL statistics.
Alexey Lesovsky
 
PDF
Node.js flow control
Simon Su
 
PDF
Rop and it's friends
nuc13us
 
PDF
The Ring programming language version 1.5.3 book - Part 25 of 184
Mahmoud Samir Fayed
 
PPTX
What is row level isolation on cassandra
Kazutaka Tomita
 
PDF
Wprowadzenie do technologi Big Data i Apache Hadoop
Sages
 
PDF
Numerical Methods with Computer Programming
Utsav Patel
 
ODP
Intravert Server side processing for Cassandra
Edward Capriolo
 
PDF
Профилирование и оптимизация производительности Ruby-кода
samsolutionsby
 
PDF
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Ontico
 
PDF
Data structure programs in c++
mmirfan
 
PDF
Zone.js 2017
Jia Li
 
PDF
Taipei.py 2018 - Control device via ioctl from Python
Hua Chu
 
PPTX
All you need to know about the JavaScript event loop
Saša Tatar
 
PDF
Nodejs - Should Ruby Developers Care?
Felix Geisendörfer
 
PDF
Refactoring for testability c++
Dimitrios Platis
 
PDF
Non-Relational Postgres / Bruce Momjian (EnterpriseDB)
Ontico
 
Prometheus Storage
Fabian Reinartz
 
The Ring programming language version 1.6 book - Part 71 of 189
Mahmoud Samir Fayed
 
Deep dive into PostgreSQL statistics.
Alexey Lesovsky
 
Node.js flow control
Simon Su
 
Rop and it's friends
nuc13us
 
The Ring programming language version 1.5.3 book - Part 25 of 184
Mahmoud Samir Fayed
 
What is row level isolation on cassandra
Kazutaka Tomita
 
Wprowadzenie do technologi Big Data i Apache Hadoop
Sages
 
Numerical Methods with Computer Programming
Utsav Patel
 
Intravert Server side processing for Cassandra
Edward Capriolo
 
Профилирование и оптимизация производительности Ruby-кода
samsolutionsby
 
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Ontico
 
Data structure programs in c++
mmirfan
 
Zone.js 2017
Jia Li
 
Taipei.py 2018 - Control device via ioctl from Python
Hua Chu
 
All you need to know about the JavaScript event loop
Saša Tatar
 
Nodejs - Should Ruby Developers Care?
Felix Geisendörfer
 
Refactoring for testability c++
Dimitrios Platis
 
Non-Relational Postgres / Bruce Momjian (EnterpriseDB)
Ontico
 

Viewers also liked (20)

PPT
Roditelska noemvri 2014
jasmina ivanova
 
PPTX
RESA Commercial DRAFT
sdr-resa
 
PDF
Discussion continuum - Access to treatment
Xplore Health
 
PDF
English l1 creative writing
lesleymccardle
 
PPTX
Presentatie Park op Nijverdal
huisj07
 
PDF
11 Mistakes While Looking For A Job
Patrick Lynch
 
XLSX
Tabla de materiales y precios de colciencias (1)
Carlos Javier Beltran Martinez
 
PPTX
the meaning of my life
donshe_26
 
PPTX
Blog8.3 656-680-695
mepigxymayme
 
PDF
Researchers - recommendations from AIGLIA2014
futureagricultures
 
PPTX
Design pattern per il community management
valeria baudo
 
PDF
Mba724 s4 3 survey methodology
Rachel Chung
 
PDF
تمثيل البيانات بيانياً
heshmat2010
 
PDF
ゲーム体験を最大化するために最適なITインフラとは
KVH Co. Ltd.
 
PPTX
Grammabook2finished
raquel63485
 
PDF
General Quiz (Prelims) | Elixir '12
Abinash Shaw
 
PPT
Kiwanis presentation 06-07-2011
bhmiomaha
 
KEY
The origin of the species
Daniel Webb
 
Roditelska noemvri 2014
jasmina ivanova
 
RESA Commercial DRAFT
sdr-resa
 
Discussion continuum - Access to treatment
Xplore Health
 
English l1 creative writing
lesleymccardle
 
Presentatie Park op Nijverdal
huisj07
 
11 Mistakes While Looking For A Job
Patrick Lynch
 
Tabla de materiales y precios de colciencias (1)
Carlos Javier Beltran Martinez
 
the meaning of my life
donshe_26
 
Blog8.3 656-680-695
mepigxymayme
 
Researchers - recommendations from AIGLIA2014
futureagricultures
 
Design pattern per il community management
valeria baudo
 
Mba724 s4 3 survey methodology
Rachel Chung
 
تمثيل البيانات بيانياً
heshmat2010
 
ゲーム体験を最大化するために最適なITインフラとは
KVH Co. Ltd.
 
Grammabook2finished
raquel63485
 
General Quiz (Prelims) | Elixir '12
Abinash Shaw
 
Kiwanis presentation 06-07-2011
bhmiomaha
 
The origin of the species
Daniel Webb
 
Ad

Similar to Compare mysql5.1.50 mysql5.5.8 (20)

PDF
Recent my sql_performance Test detail
Louis liu
 
PDF
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
Aurimas Mikalauskas
 
PDF
Seminar : &quot;The Future of MYSQL - Roadmap to Success&quot; session MySQL...
Software Park Thailand
 
PDF
My sql 56_roadmap_april2012_zht2
Ivan Tu
 
PDF
MySQL Manchester TT - 5.7 Whats new
Mark Swarbrick
 
PDF
What's new in my sql smug
Ted Wennmark
 
ODP
MySQL 5.7 - What's new and How to upgrade
Abel Flórez
 
PDF
MySQL performance webinar
Abel Flórez
 
PDF
MySQL Performance - Best practices
Ted Wennmark
 
PDF
What's New in MySQL 5.7
Olivier DASINI
 
PPT
MySQL Performance Tuning at COSCUP 2014
Ryusuke Kajiyama
 
PPT
My sql vivo_5.5_product_update_pt
MySQL Brasil
 
PDF
MySQL 5.6, news in 5.7 and our HA options
Ted Wennmark
 
PDF
MySQL Performance Tuning London Meetup June 2017
Ivan Zoratti
 
PPT
jacobs_tuuri_performance
Hiroshi Ono
 
PDF
MySQL 5.5&5.6 new features summary
Louis liu
 
PDF
程序猿都该知道的MySQL秘籍
Jinrong Ye
 
PDF
MySQL 5.7 innodb_enhance_partii_20160527
Saewoong Lee
 
PDF
MySQL Manchester TT - Performance Tuning
Mark Swarbrick
 
PDF
My sql 5.6&MySQL Cluster 7.3
Oleksii(Alexey) Porytskyi
 
Recent my sql_performance Test detail
Louis liu
 
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
Aurimas Mikalauskas
 
Seminar : &quot;The Future of MYSQL - Roadmap to Success&quot; session MySQL...
Software Park Thailand
 
My sql 56_roadmap_april2012_zht2
Ivan Tu
 
MySQL Manchester TT - 5.7 Whats new
Mark Swarbrick
 
What's new in my sql smug
Ted Wennmark
 
MySQL 5.7 - What's new and How to upgrade
Abel Flórez
 
MySQL performance webinar
Abel Flórez
 
MySQL Performance - Best practices
Ted Wennmark
 
What's New in MySQL 5.7
Olivier DASINI
 
MySQL Performance Tuning at COSCUP 2014
Ryusuke Kajiyama
 
My sql vivo_5.5_product_update_pt
MySQL Brasil
 
MySQL 5.6, news in 5.7 and our HA options
Ted Wennmark
 
MySQL Performance Tuning London Meetup June 2017
Ivan Zoratti
 
jacobs_tuuri_performance
Hiroshi Ono
 
MySQL 5.5&5.6 new features summary
Louis liu
 
程序猿都该知道的MySQL秘籍
Jinrong Ye
 
MySQL 5.7 innodb_enhance_partii_20160527
Saewoong Lee
 
MySQL Manchester TT - Performance Tuning
Mark Swarbrick
 
My sql 5.6&MySQL Cluster 7.3
Oleksii(Alexey) Porytskyi
 
Ad

More from Philip Zhong (12)

PPTX
Cisco Webex Distributed Framework and Data Store Design
Philip Zhong
 
PPTX
How to Implement Distributed Data Store
Philip Zhong
 
PPT
MongoDB Knowledge Shareing
Philip Zhong
 
PPT
Adapter Poxy Pattern
Philip Zhong
 
PPTX
How to estimate_oracle_cost
Philip Zhong
 
PDF
Mongo db program_installation_guide
Philip Zhong
 
PDF
Mongo db sharding_cluster_installation_guide
Philip Zhong
 
PDF
Vitess percona 2012
Philip Zhong
 
PDF
Distributed_Database_System
Philip Zhong
 
PPTX
Mysql performance tuning
Philip Zhong
 
PPTX
How to write_language_compiler
Philip Zhong
 
PPTX
Mysql architecture&parameters
Philip Zhong
 
Cisco Webex Distributed Framework and Data Store Design
Philip Zhong
 
How to Implement Distributed Data Store
Philip Zhong
 
MongoDB Knowledge Shareing
Philip Zhong
 
Adapter Poxy Pattern
Philip Zhong
 
How to estimate_oracle_cost
Philip Zhong
 
Mongo db program_installation_guide
Philip Zhong
 
Mongo db sharding_cluster_installation_guide
Philip Zhong
 
Vitess percona 2012
Philip Zhong
 
Distributed_Database_System
Philip Zhong
 
Mysql performance tuning
Philip Zhong
 
How to write_language_compiler
Philip Zhong
 
Mysql architecture&parameters
Philip Zhong
 

Recently uploaded (20)

PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 

Compare mysql5.1.50 mysql5.5.8

  • 1. Compare mysql5.1.50 with mysql5.5.8 Philip zhong 2011-1-5
  • 2. Prepare the testing environment
  • 3. Machine configuration information • Intel(R) Xeon(R) E5620 X86-64 • 2 CPU x 8 Cores/CPU • Linux 2.6.9 • 2.40GHz, 32 GB RAM • CentOS release 5.3 • Disk:hdparm -t /dev/sdc2=212.19 MB/sec • Mysql5.1.50 and Mysql5.5.8 are installed on the same machine
  • 4. Install MYSQL5.1.50 export MYSQL_HOME=/home/oracle/mysql5.1.50 CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3" ./configure --prefix=$MYSQL_HOME --with-extra-charsets=latin1,gbk,utf8 --with-plugins=partition,heap,innobase,myisam,innodb_plugin --enable-assembler --enable-thread-safe-client --without-debug --without-plugin-daemon_example --without-plugin-ftexample --without-plugin-archive --without-plugin-blackhole --without-plugin-example --without-plugin-federated --without-plugin-ibmdb2i --without-plugin-ndbcluster --with-mysqld-user=oracle --with-server-suffix=-webex --with-unix-socket-path=$MYSQL_HOME/run/mysql.sock
  • 5. Install MYSQL5.5.8 export MYSQL_HOME="/home/oracle/mysql5.5.8" export MYSQL_DATA_HOME="/data/mysql5.5.8/datacenter" cmake . -DCMAKE_INSTALL_PREFIX=$MYSQL_HOME -DINSTALL_LAYOUT=STANDALONE -DMYSQL_DATADIR=$MYSQL_DATA_HOME -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 -DENABLE_DEBUG_SYNC=OFF -DENABLE_DOWNLOADS=OFF -DENABLE_DTRACE=OFF -DENABLED_LOCAL_INFILE=OFF -DENABLED_PROFILING=ON -DMYSQL_MAINTAINER_MODE=OFF -DMYSQL_UNIX_ADDR=$MYSQL_HOME/run/mysql.sock -DMYSQL_TCP_PORT=3306 -DWITH_COMMENT="mysql 5.5.8 on linux2.6 for webex" -DWITH_DEBUG=OFF -DWITH_EMBEDDED_SERVER=OFF -DWITH_EXTRA_CHARSETS=ALL -DWITH_UNIT_TESTS=OFF -LH
  • 6. Install SYSBENCH0.4.12 ./configure --prefix=/opt/sysbench_mysql50/ -- with-mysql- includes=/home/oracle/mysql5.1.50/include/mys ql/ --with-mysql- libs=/home/oracle/mysql5.1.50/lib/mysql ./configure --prefix=/opt/sysbench_mysql55/ -- with-mysql- includes=/home/oracle/mysql5.5.8/include/ -- with-mysql-libs=/home/oracle/mysql5.5.8/lib/
  • 7. MYSQL5.1.50 plug-in configurations default-storage-engine = INNODB ignore-builtin-innodb plugin- load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so;innodb_locks=ha_innodb_p lugin.so;innodb_lock_waits=ha_innodb_plugin.so;innodb_cmp=ha_innodb_plugin.so;innodb_cm p_reset=ha_innodb_plugin.so;innodb_cmpmem=ha_innodb_plugin.so;innodb_cmpmem_reset=h a_innodb_plugin.so innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 15 innodb_additional_mem_pool_size = 20M innodb_buffer_pool_size = 1024M innodb_log_buffer_size= 10M innodb_log_file_size = 256M innodb_log_files_in_group = 2 innodb_thread_concurrency = 16 innodb_write_io_threads = 8 innodb_read_io_threads = 8 innodb_max_dirty_pages_pct = 70 transaction-isolation = READ-COMMITTED innodb_file_format=Barracuda
  • 8. MYSQL5.1.50 built-in configurations default-storage-engine = INNODB innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 15 innodb_additional_mem_pool_size = 20M innodb_buffer_pool_size = 1024M innodb_log_buffer_size= 10M innodb_log_file_size = 256M innodb_log_files_in_group = 2 innodb_thread_concurrency = 16 innodb_max_dirty_pages_pct = 70 transaction-isolation = READ-COMMITTED
  • 9. MYSQL5.5.8 configurations default-storage-engine = INNODB innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 15 innodb_additional_mem_pool_size = 20M innodb_buffer_pool_size = 1024M innodb_log_buffer_size= 10M innodb_log_file_size = 256M innodb_log_files_in_group = 2 innodb_thread_concurrency = 16 innodb_write_io_threads = 8 innodb_read_io_threads = 8 innodb_max_dirty_pages_pct =70 transaction-isolation = READ-COMMITTED innodb_file_format=Barracuda
  • 10. Test without concurrency for mysql5.1.50 and mysql5.5.8
  • 11. MYSQL without concurrency item name Mysql5.1.50 built-in Mysql5.1.50 plug-in Mysql5.5.8 Insert with 53.19 sec 53.33 sec 1 min 1.00 sec 10000000 records Add a column 1000000 rows affected 1000000 rows 1000000 rows (13.00 sec) affected (12.03 sec) affected (12.47sec) Create a index 1000000 rows affected 0 rows affected 0 rows affected (19.24 sec) (16.38 sec) (18.51 sec) Drop a index 1000000 rows affected 0 rows affected 0 rows affected (0.46 (13.50 sec) (0.46 sec) sec) Drop a column 1000000 rows affected 1000000 rows 1000000 rows (20.00 sec) affected (19.04 sec) affected (19.78 sec)
  • 12. Create the tables script CREATE TABLE test_without_concurrency ( id int(10) unsigned NOT NULL, k int(10) unsigned NOT NULL DEFAULT '0', c char(120) NOT NULL DEFAULT '', pad char(60) NOT NULL DEFAULT '', PRIMARY KEY (id), KEY k (k) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  • 13. Insert data script DELIMITER // CREATE PROCEDURE insert_data_WITHOUT_CONCURRENCY() BEGIN DECLARE vCount bigint(12) DEFAULT 1; DECLARE vK bigint(12) DEFAULT 1; DECLARE vbuyerName varchar(128) DEFAULT '0bPhilip'; DECLARE vSellerName varchar(128) DEFAULT '0sPhilip'; SET AUTOCOMMIT=0; WHILE vCount<=1000000 DO INSERT INTO TEST_WITHOUT_CONCURRENCY (id,k,c,pad) VALUES(vCount,vK,vSellerName,vbuyerName); set vCount=vCount+1; IF MOD(vCount,5000)=0 THEN set vK=vK+1; set vbuyerName=concat(vCount,'bPhilip'); set vSellerName=concat(vCount,'sPhilip'); COMMIT; END IF; END WHILE; COMMIT; END; // DELIMITER ; Call insert_data_WITHOUT_CONCURRENCY();
  • 14. DDL operation scripts 1.alter table TEST_WITHOUT_CONCURRENCY add column philip_test varchar(100); 2.Create index ind_c on TEST_WITHOUT_CONCURRENCY(c); 3.Alter table TEST_WITHOUT_CONCURRENCY drop column philip_test ; 4. Alter table TEST_WITHOUT_CONCURRENCY drop index ind_c ;
  • 15. Test with concurrency for mysql5.1.50 and mysql5.5.8
  • 17. Insert data script --5.1.50(plug-in and built-in) cd /opt/sysbench_mysql50/bin ./sysbench --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=16 prepare --5.5.8 cd /opt/sysbench_mysql55/bin ./sysbench --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=16 prepare
  • 18. Test script(1) --5.1.50(plug-in and built-in) ./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 --db-ps-mode=auto --debug=off --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=4 --max-requests=10000 --oltp-auto-inc=off --mysql-engine-trx=yes run ./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 --db-ps-mode=auto --debug=off --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=8 --max-requests=10000 --oltp-auto-inc=off --mysql-engine-trx=yes run
  • 19. Test script(2) --5.5.8 ./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 --db-ps-mode=auto --debug=off --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=4 --max-requests=10000 --oltp-auto-inc=off --mysql-engine-trx=yes run ./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 --db-ps-mode=auto --debug=off --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=8 --max-requests=10000 --oltp-auto-inc=off --mysql-engine-trx=yes run