Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 80dbbd4

Browse files
authoredNov 29, 2024
10.13 Measuring Performance (Benchmarking).md
1 parent a3dd1be commit 80dbbd4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
 
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
原文地址:https://dev.mysql.com/doc/refman/8.0/en/optimize-benchmarking.html
2+
3+
4+
5+
## 10.13 Measuring Performance (Benchmarking)
6+
7+
- [10.13.1 Measuring the Speed of Expressions and Functions](https://dev.mysql.com/doc/refman/8.0/en/select-benchmarking.html)
8+
- [10.13.2 Using Your Own Benchmarks](https://dev.mysql.com/doc/refman/8.0/en/custom-benchmarks.html)
9+
- [10.13.3 Measuring Performance with performance_schema](https://dev.mysql.com/doc/refman/8.0/en/monitoring-performance-schema.html)
10+
11+
12+
13+
To measure performance, consider the following factors:
14+
15+
- Whether you are measuring the speed of a single operation on a quiet system, or how a set of operations (a “workload”) works over a period of time. With simple tests, you usually test how changing one aspect (a configuration setting, the set of indexes on a table, the SQL clauses in a query) affects performance. Benchmarks are typically long-running and elaborate performance tests, where the results could dictate high-level choices such as hardware and storage configuration, or how soon to upgrade to a new MySQL version.
16+
- For benchmarking, sometimes you must simulate a heavy database workload to get an accurate picture.
17+
- Performance can vary depending on so many different factors that a difference of a few percentage points might not be a decisive victory. The results might shift the opposite way when you test in a different environment.
18+
- Certain MySQL features help or do not help performance depending on the workload. For completeness, always test performance with those features turned on and turned off. The most important feature to try with each workload is the [adaptive hash index](https://dev.mysql.com/doc/refman/8.0/en/innodb-adaptive-hash.html) for `InnoDB` tables.
19+
20+
This section progresses from simple and direct measurement techniques that a single developer can do, to more complicated ones that require additional expertise to perform and interpret the results.

0 commit comments

Comments
 (0)
Please sign in to comment.