Readme
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:4k
源码类别:

模拟服务器

开发平台:

C/C++

  1. The MySQL Benchmarks
  2. These tests needs a MySQL version of at least 3.20.28 or 3.21.10.
  3. NOTE: With MySQL 3.20.# you have to use '--skip-in',  because MySQL 3.20
  4. doesn't support the IN operator.
  5. Currently the following servers are supported:
  6. MySQL 3.20 and 3.21, PostgreSQL 6.#, mSQL 2.# and Solid Server 2.2
  7. In this directory are the queries and raw data files used to populate
  8. the MySQL benchmarks. In order to run the benchmarks you should normally
  9. execute a command like the following:
  10. run-all-tests --server=mysql --cmp=mysql,pg,solid --user=test --password=test --log
  11. The above means that one wants to run the benchmark with MySQL. The limits
  12. should be taken from all of mysql,PostgreSQL and Solid.  Login name and
  13. password is 'test'.  The result should be saved as a RUN file in the output
  14. directory.
  15. When the above script has run you will have the individual results and the
  16. the total RUN- file in the output directory.
  17. If you want to look at some old results, try:
  18. compare-results --dir=Results --cmp=mysql,pg,solid
  19. compare-results --dir=Results --cmp=mysql,pg,solid --relative
  20. compare-results --dir=Results --cmp=msql,mysql,pg,solid
  21. compare-results --dir=Results --cmp=msql,mysql,pg,solid --relative
  22. compare-results --dir=results --server=mysql --same-server --cmp=mysql,pg,solid
  23. File Description
  24. Data/ATIS Contains data for 29 related tables used in the ATIS tests.
  25. Data/Wisconsin Contains data for the Wisconsin benchmark.
  26. Results Contains old benchmark results.
  27. Makefile.am Automake Makefile
  28. Overview-paper A paper nicked from the net about database bench-
  29. marking.
  30. README This file.
  31. test-ATIS.sh Cretation of 29 tables and a lot of selects on them.
  32. test-connect.sh Test how fast a connection to the server is.
  33. test-create.sh Test how fast a table is created.
  34. test-insert.sh Test create and fill of a table.
  35. test-wisconsin.sh This is a port of the PostgreSQL version of this
  36. benchmark.
  37. run-all-test Use this to run all tests. When all test are run,
  38. use the --log --use-old option to get a RUN-file.
  39. compare-results Makes a compare table from different RUN files.
  40. server-cfg Contains the limit and functions for all supported
  41. SQL servers.  If you want to add a new server, this
  42. should be the only file that neads to be changed.
  43. Most of the test should use portable SQL to make it possible to
  44. compare different databases. Sometimes SQL extensions can make things
  45. a lot faster. In this case the test may use the extensions if the --fast
  46. option is used.
  47. Useful options to all test-scripts (and run-all-tests):
  48. --host=# Hostname for MySQL server (default: localhost)
  49. --db=# Database to use (default: test)
  50. --fast Allow use of any non-standard SQL extension to
  51. do the get things done faster.
  52. --skip-in Don't do test with the IN operation (if the SQL server
  53. hasn't implemented this, for example mSQL and MySQL 3.20).
  54. --lock-tables Use table locking to get more speed.
  55. From a text at http://www.mgt.ncu.edu.tw/CSIM/Paper/sixth/11.html
  56. The Wisconsin Benchmark
  57. The Wisconsin Benchmark described in [Bitton, DeWitt, and Turbyfill
  58. 1983] [Boral and DeWitt 1984] [Bitton and Turbyfill 1985] [Bitton and
  59. Turbyfill 1988], and [DeWitt 1993] is the first effort to
  60. systematically measure and compare the performance of relational
  61. database systems with database machines.  The benchmark is a
  62. single-user and single-factor experiment using a synthetic database
  63. and a controlled workload.  It measures the query optimization
  64. performance of database systems with 32 query types to exe cise the
  65. components of the proposed systems.  The query suites include
  66. selection, join, projection, aggregate, and simple update queries.
  67. The test database consists of four generic relations.  The tenk
  68. relation is the key table and most used. Two data types of small
  69. integer number and character string are utilized.  Data values are
  70. uniformly distributed. The primary metric is the query elapsed
  71. time. The main criticisms of the benchmark include the nature of
  72. single-user workload, the simplistic database structure, and the
  73. unrealistic query tests.  A number of efforts have been made to extend
  74. the benchmark to incorporate the multi-user test.  However, they do
  75. not receive the same acceptance as the original Wisconsin benchmark
  76. except an extension work called the AS3AP benchmark.