Cloud MySQL Performance Benchmark

Posts of Cloud MySQL Performance Benchmark

  • This content is password protected. To view it please enter your password below:

  • Sysbench QPS 详细数据

    dataaliyunawsazurebaidugooglehuaweioracletencent
    469343365161521641449235137016439
    8984266853018407928324284638711999
    16155971302855117360476776261012019864
    3223331227669761126337333132821135529928
    48267402636212245164429780170301160132940
    642928428181132611950511144194411255734154
    963103330829144182206611166198051228233711
    1283145032467150662291211191198261303032735
    1923228732558153142338611244204531267735476
    2563157131954154702329110963214891291036917
    3843141932047158922304511212228941324237473
    5123138232221159782298711399227501264337992

    Latency (Event) 详细数据

    如下表格分别为:平均延迟 和 95%延迟数据。单位为:毫秒/ms。

    dataaliyunawsazurebaidugooglehuaweioracletencent
    410.3821.3944.5633.2649.6830.6219.4911.18
    814.6321.5447.7135.3050.8333.6122.5412.00
    1618.4622.1052.2539.1360.4137.7628.4614.50
    3224.6925.3059.0045.5978.5343.3650.7219.24
    4832.3132.7770.5552.5488.3250.7374.4626.23
    6439.3440.8786.8659.05103.3459.2591.7333.73
    9655.6856.04119.8278.30154.7087.24140.6551.24
    12873.2570.95152.89100.54205.82116.19176.7670.37
    192107.02106.13225.58147.74307.27168.93272.5597.40
    256145.92144.17297.73197.78420.05214.36356.72124.79
    384219.91215.58434.67299.81615.95301.73521.43184.41
    512293.55285.85576.35400.66807.65404.86727.98242.43
    dataaliyunawsazurebaidugooglehuaweioracletencent
    412.3022.2851.9442.6175.8237.5628.6712.75
    819.2922.2856.8445.7982.9640.3736.2413.46
    1624.8324.8363.3251.02104.8445.7948.3416.71
    3235.5931.9471.8362.19132.4952.8994.1023.95
    4848.3444.1789.1673.13144.9762.19130.1333.72
    6461.0853.85116.8086.00161.5174.46155.8044.17
    9684.4774.46173.58116.80215.44134.90235.7482.96
    128106.75108.68235.74147.61277.21155.80267.41153.02
    192144.97164.45369.77207.82411.96253.35404.61173.58
    256189.93219.36511.33267.41569.67356.70502.20186.54
    384292.60314.45787.74390.30802.05511.33694.45257.95
    512390.30411.961050.76511.331050.76569.67960.30331.91

    MySQL 参数对比表格

    dataaliyunawsazurebaidugooglehuaweioracletencent
    have_sslDISABLEDYESYESDISABLEDYESDISABLEDYESDISABLED
    innodb_buffer_pool_size9.75GB11GB12GB12GB11GB9GB17GB12GB
    innodb_doublewriteONOFFOFFONONONONON
    innodb_flush_log_at_trx_commit11111111
    innodb_flush_methodO_DIRECTO_DIRECTfsyncfsyncO_DIRECTO_DIRECTO_DIRECTO_DIRECT
    innodb_io_capacity200002002002000500012000125020000
    innodb_read_io_threads44NA84424
    innodb_write_io_threads44NA84444
    log_binONOFFONONONONONON
    performance_schemaOFFOFFONOFFONOFFONOFF
    rpl_semi_sync_master_enabledONNANAONNAONNAON
    rpl_semi_sync_master_timeout1000NANA10000NA10000NA10000
    sync_binlog11110001111
    thread_pool_size8NA4NA4NA164
    version8.0.368.0.418.0.41-azure8.0.32-4.0.0.58.0.41-google8.0.28-2310038.0.40-u6-cloud8.0.30-txsql
    instance_typemysql.x4.large.2cdb.m7i.xlargeGP_Standard_D4ads_v54db-custom-4-16384rds.mysql.x1.xlarge.4.haMySQL.44c
    storage_typecloud_essdio1NAcloud_enhaNACLOUDSSDNAEXCLUSIVE
    storage_size100100100100100100100100
    storage_iopsNA30003000NANANANANA
    cpu_capacity97146.673.674.553.8154.8118.8107.3

    补充测试

    在最近的两次 MySQL 测试中,都补充进行了数据量更大的测试。在原测试的基础上,修改了sysbench的数据准备参数,补充测试参数:

        # cpu-io mixed benchmark
        tables=16
        run_time=300
        table_size=5000000
        # cpu intensive benchmark
        tables=10
        run_time=300
        table_size=1000000

    根据之前的计算,在该“cpu-io mixed benchmark”下,数据总量约18.4 GB,即,该压力测试则会成为一个读IO密集型的测试。各个云厂商在该模型下的性能表现如下图:

    Sysbench QPS 详细数据

    dataaliyunawsazurebaidugooglehuaweioracletencent
    4402714999461800144920047545689
    8471729801798328827023749357010257
    16564235882810572242756848712717248
    326464368929878380572912139748224535
    486854373330078789665114857771626788
    647052372430658982699015630806727617
    967292372230769204725915960829326969
    1287421386130659324759816162838026215
    1927556403030909675747416291852827930
    2567588401730809545760316336867628165
    38476354159310010147764110285872328725
    5127693436331131060278025391880928922

    Latency (Event) 详细数据

    如下表格分别为:平均延迟 和 95%延迟数据。单位为:毫秒/ms。

    dataaliyunawsazurebaidugooglehuaweioracletencent
    417.8848.0476.0540.0049.6835.9395.6212.66
    830.5248.3280.0943.7953.2938.4140.3314.04
    1651.0480.29102.4950.3267.3642.0540.4416.70
    3289.10156.14192.8068.73100.5347.4477.0623.47
    48126.02231.39287.2798.29129.8658.15111.9432.25
    64163.32309.23375.70128.24164.7573.71142.7641.71
    96236.90463.84561.46187.66237.92108.25208.3264.07
    128310.35596.25751.37247.10302.96142.51275.0087.88
    192457.04856.601117.62356.97462.11212.04405.03123.71
    256606.961145.531494.61482.24605.40281.92531.03163.56
    384904.341659.372226.85680.65903.58671.53792.11240.53
    5121196.512109.122954.89867.321179.101705.201044.82318.47
    dataaliyunawsazurebaidugooglehuaweioracletencent
    420.7455.82104.8458.9278.6043.39787.7414.73
    833.7253.85102.9773.1399.3347.4745.7916.71
    16150.29227.40142.3997.55170.4852.89102.9721.89
    32297.92325.98262.64139.85240.0263.32344.0833.12
    48350.33397.39397.39193.38287.3881.48450.7748.34
    64390.30467.30520.62235.74303.33215.44484.4462.19
    96458.96612.21802.05325.98363.18331.91559.50137.35
    128530.08759.881109.09411.96427.07376.49612.21167.44
    192669.891352.031678.14569.67634.66467.30707.07196.89
    256831.461973.382238.47787.74816.63539.71802.05235.74
    3841191.923095.383326.551050.761191.921836.241013.60320.17
    5121589.903911.794437.271327.911561.522082.911376.60411.96

    MySQL 参数对比表格

    dataaliyunawsazurebaidugooglehuaweioracletencent
    have_sslDISABLEDYESYESDISABLEDYESDISABLEDYESDISABLED
    innodb_buffer_pool_size9.75GB11GB12GB12GB11GB9GB17GB12GB
    innodb_doublewriteONOFFOFFONONONONON
    innodb_flush_log_at_trx_commit11111111
    innodb_flush_methodO_DIRECTO_DIRECTfsyncfsyncO_DIRECTO_DIRECTO_DIRECTO_DIRECT
    innodb_io_capacity200002002002000500012000125020000
    innodb_read_io_threads44NA84424
    innodb_write_io_threads44NA84444
    log_binONOFFONONONONONON
    performance_schemaOFFOFFONOFFONOFFONOFF
    rpl_semi_sync_master_enabledONNANAONNAONNAON
    rpl_semi_sync_master_timeout1000NANA10000NA10000NA10000
    sync_binlog11110001111
    thread_pool_size8NA4NA4NA164
    version8.0.368.0.418.0.41-azure8.0.32-4.0.0.58.0.41-google8.0.28-2310038.0.40-u6-cloud8.0.30-txsql
    instance_typemysql.x4.large.2cdb.m7i.xlargeGP_Standard_D4ads_v54db-custom-4-16384rds.mysql.x1.xlarge.4.haMySQL.44c
    storage_typecloud_essdio1NAcloud_enhaNACLOUDSSDNAEXCLUSIVE
    storage_size100100100100100100100100
    storage_iopsNA30003000NANANANANA
    cpu_capacity96.6152.173.272.849.3163.4119.9108

  • This content is password protected. To view it please enter your password below:

  • Sysbench QPS 详细数据

    dataaliyunawsazurebaidugooglehuaweioracletencent
    467491657141717761655275329876118
    8948333042820326028954989500411196
    161453363955418609452069263734319249
    322208212295964610483742715601788130337
    4827974162951251113599848219787758334849
    6433061177041513716364920921697762635951
    9635588208431866919334965922855825734147
    12838226223112096420061970422303804634271
    192401352253023274209601045623323780637142
    256401902236924643214121063823572785338175
    384419142209725153211041050623785800939298
    512415962179325700212791076823910838138840

    Latency (Event) 详细数据

    如下表格分别为:平均延迟 和 95%延迟数据。单位为:毫秒/ms。

    dataaliyunawsazurebaidugooglehuaweioracletencent
    410.6743.4450.8240.5443.5026.1524.1011.77
    815.1843.5751.0644.1749.7328.8628.7712.86
    1619.8245.0353.1547.2555.3231.0939.2214.96
    3226.0846.8559.7054.9477.5436.9273.0818.99
    4830.8853.0269.0563.53101.8443.66113.9324.79
    6434.8465.0676.1070.40125.0753.09151.0332.04
    9648.5582.9092.5489.37178.8875.60209.2550.60
    12860.27103.25109.87114.84237.39103.29286.2967.22
    19286.10153.37148.44164.86330.38148.15442.4993.04
    256114.65205.96186.90215.17433.06195.43586.49120.68
    384164.88312.70274.71327.48657.65290.43862.47175.84
    512221.51422.68358.43432.99855.41385.231098.68237.15
    dataaliyunawsazurebaidugooglehuaweioracletencent
    413.4646.6358.9256.8457.8731.3736.2413.46
    816.4146.6361.0861.0875.8234.9541.8515.00
    1620.0051.0264.4766.8490.7837.5669.2918.28
    3228.1653.8577.1980.03144.9744.98116.8025.28
    4862.1964.47104.8494.10189.9353.85176.7333.72
    64108.6878.60130.13102.97223.3470.55262.6445.79
    96155.8099.33167.44132.49277.21121.08325.98134.90
    128183.21132.49193.38170.48350.33144.97427.07150.29
    192227.40219.36240.02240.02475.79215.44623.33170.48
    256325.98287.38297.92303.33623.33308.841050.76196.89
    384411.96434.83458.96442.73926.33539.712539.17248.83
    512539.71569.67580.02580.021191.92559.502880.27320.17

    MySQL 参数对比表格

    dataaliyunawsazurebaidugooglehuaweioracletencent
    have_sslDISABLEDYESYESDISABLEDYESDISABLEDYESDISABLED
    innodb_buffer_pool_size9.75GB11GB24GB12GB11GB9GB17GB12GB
    innodb_doublewriteONOFFOFFONONONONON
    innodb_flush_log_at_trx_commit11111111
    innodb_flush_methodO_DIRECTO_DIRECTfsyncfsyncO_DIRECTO_DIRECTO_DIRECTO_DIRECT
    innodb_io_capacity200002002002000500012000125020000
    innodb_read_io_threads44NA84424
    innodb_write_io_threads44NA84444
    log_binONOFFONONONONONON
    performance_schemaOFFOFFONOFFONOFFONOFF
    rpl_semi_sync_master_enabledONNANAONNAONNAON
    rpl_semi_sync_master_timeout1000NANA10000NA10000NA10000
    sync_binlog11110001111
    thread_pool_size8NA8NANANA164
    version8.0.368.0.408.0.40-azure8.0.32-2.0.0.28.0.37-google8.0.28-2310038.0.40-u3-cloud8.0.30-txsql
    instance_typemysql.x4.large.2cdb.m6i.xlargeGP_Standard_D8ads_v54db-custom-4-16384rds.mysql.x1.xlarge.4.haMySQL.44c
    storage_typecloud_essdio1NAcloud_enhaNACLOUDSSDNAEXCLUSIVE
    storage_size100100100100100100100100
    storage_iopsNA30003000NANANANANA
    cpu_capacity172.3110.9139.873.846.4162.686.8128.5

  • 在不同的云厂商,购买相同规格的MySQL实例(如4vCPU-16GB),获得的性能相同吗?

    本次测试中,极限性能(512并发下的QPS)表现如上图:腾讯云性能最好,达3.6万;其次是阿里云2.7万,相比于上一次测试的4.0万性能下降比较明显;其次是华为、AWS、百度,再次是Azure、Google云和Oracle云。更多详细数据参考如下。

    Sysbench QPS 详细数据

    dataaliyunawsazurebaidugooglehuaweioracletencent
    457892183151720171915247630325868
    8871643352964382234154546504610518
    161437382725489697560718472783916903
    322013215377911111910858214384771723484
    4823026178621143915330964118667774726802
    6424990199471262318316987721269788930054
    96269542246113578205351042322137852935131
    128269242320014057214811068221394823036199
    192265862330914484214271120322040795836259
    256259332339614640218271141322847743835743
    384272092292414638214521155224148769035747
    512276622277814674214051135024079719636052

    Latency (Event) 详细数据

    如下表格分别为:平均延迟 和 95%延迟数据。单位为:毫秒/ms。

    dataaliyunawsazurebaidugooglehuaweioracletencent
    412.4432.9847.4535.7037.6029.0823.7412.27
    816.5233.2248.5837.6842.1631.6728.5413.69
    1620.0434.8152.4641.2947.4333.9936.7417.04
    3228.6137.4563.2148.3667.1140.0474.6324.53
    4837.5248.3775.5256.3589.6146.28111.5232.23
    6446.1057.7591.2562.89116.6154.16146.0038.33
    9664.1176.92127.2584.14165.7678.04202.5649.18
    12885.5799.30163.88107.25215.61107.68279.9063.64
    192129.99148.24238.56161.27308.43156.77434.1295.30
    256177.67196.91314.68211.08403.63201.61619.30128.89
    384254.00301.39472.05322.16598.09286.09898.19193.28
    512333.11404.42627.82430.45811.55382.501279.61255.51
    dataaliyunawsazurebaidugooglehuaweioracletencent
    418.9536.2455.8241.1047.4737.5636.8914.73
    825.7436.2457.8744.9861.0839.6546.6317.01
    1629.1941.1062.1950.1187.5641.8566.8421.89
    3244.1745.7978.6062.19147.6149.21121.0831.94
    4866.8459.9995.8177.19204.1156.84200.4741.85
    6486.0071.83121.0890.78219.3668.05267.4149.21
    96116.80101.13183.21125.52272.27123.28325.9862.19
    128147.61142.39248.83164.45331.91150.29442.7377.19
    192219.36211.60376.49227.40450.77231.53634.66116.80
    256282.25272.27511.33292.60569.67320.171376.60158.63
    384376.49411.96802.05427.07831.46539.712449.36253.35
    512484.44549.521109.09559.501129.24549.523982.86369.77

    MySQL 参数对比表格

    dataaliyunawsazurebaidugooglehuaweioracletencent
    have_sslDISABLEDYESYESDISABLEDYESDISABLEDYESDISABLED
    innodb_buffer_pool_size9.75GB11GB12GB12GB11GB9GB17GB12GB
    innodb_doublewriteONOFFOFFONONONONON
    innodb_flush_log_at_trx_commit11111111
    innodb_flush_methodO_DIRECTO_DIRECTfsyncfsyncO_DIRECTO_DIRECTO_DIRECTO_DIRECT
    innodb_io_capacity200002002002000500012000125020000
    innodb_read_io_threads44NA84424
    innodb_write_io_threads44NA84444
    log_binONOFFONONONONONON
    performance_schemaOFFOFFONOFFONOFFONOFF
    rpl_semi_sync_master_enabledONNANAONNAONNAON
    rpl_semi_sync_master_timeout1000NANA10000NA10000NA10000
    sync_binlog11110001111
    thread_pool_size8NA4NANANA164
    version8.0.368.0.398.0.39-azure8.0.32-2.0.0.28.0.31-google8.0.28-2310038.0.40-u3-cloud8.0.30-txsql
    instance_typedb.m6i.xlargeGP_Standard_D4ads_v5db-custom-4-16384m
    storage_typecloud_essdio1NANAm
    storage_size100100100m100
    storage_iops30003000NAm
    cpu_capacity100.9106.972.773.449.4163.1101.1118.4

    云数据库的 MySQL 8.4 版本

    目前,主流版本依旧还是8.0。在2024年04月,最新发布了 8.4 版本,该版本将是下一个稳定版(LTS版),所以也有部分云厂商开始这次该版本。目前,发布了 MySQL 8.4的云厂商有Amazon、Google云和Oracle云。这里也对8.4版本的性能做了测试,并对比如下:

    各云厂商详细测试数据

    关于各个云厂商更多的详细测试数据可以参考如下专题页面:

    更多参考

  • This content is password protected. To view it please enter your password below: