我最近进行了一次mysqlslap压力测试,以确定哪种类型的插入物在性能方面最佳。包含查询的文件存储在Linux系统上并从中读取。我希望有人可以通过一些见解。以下是通过mysqlslap测试获得的基准:
Time taken for Individual/Separate Insert: 5.24 seconds
Time taken for Batch Insert: 2.77 seconds
Time taken for Bulk Insert: 0.52 seconds
MySQL Version: 5.6.14 (InnoDB)
Total Records inserted on empty table: 5000
The records put together has size < 10kb
Innodb_buffer_pool_pages_flushed is disabled
Query cache turned off
是否需要对解析,Created_tmp_tables
或Innodb_buffer_pool_pages_flushed
或任何global variables
执行任何操作?