官术网_书友最值得收藏!

Benchmarking

It's difficult to compare the performance of algorithms simply by looking at their descriptions or pseudocode. It's better to run actual implementations on a real system. This method of measurement is called benchmarking. There are three categories of benchmark:

  • Microbenchmarks: These are metrics showing the performance of certain functions. They assume that a small piece of business logic is contained in a single function, and we simply measure how fast this function runs.
  • Macrobenchmarks: These are the opposite of microbenchmarks; they test the entire application.
  • Mesobenchmarks: These are something in-between, measuring features or workflows.

Large applications more or less contain certain critical pieces of code. The JVM is an adaptive virtual machine, meaning it optimizes running code in many ways. Obtaining metrics that are meaningful is actually difficult, which is why microbenchmarks are the most interesting for developers.

主站蜘蛛池模板: 宜昌市| 昌吉市| 永吉县| 青河县| 鄯善县| 新建县| 上饶市| 雅江县| 永兴县| 邵阳市| 卢氏县| 贺州市| 东宁县| 武邑县| 汽车| 鲁山县| 蚌埠市| 黔东| 织金县| 山东省| 游戏| 蓝山县| 元阳县| 宁德市| 延庆县| 永嘉县| 黔江区| 衡水市| 常熟市| 抚州市| 平定县| 繁昌县| 饶河县| 巩义市| 阳城县| 宜君县| 布拖县| 呼图壁县| 昌图县| 安庆市| 新绛县|