logo
首页技术栈工具库讨论
hayai

hayai

This is all fine for simple benchmarks, but sometimes it's beneficial to be able to set up some code before we actually perform our iterations. In unit testing, the common approach to this is using so called fixtures, and hayai provides the exact same facility. A fixture is created for every run, and before the iterations begin, the virtual function SetUp() is invoked, and once the iterations for the run have been completed, the function TearDown() is invoked. The upside to this is, that profiling is only done across the iterations, so costly setup and teardown does not count in the benchmark, which has a lot of uses.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HOMEBREW
brew install hayai
查看
标签
根据用户添加的标签生成
暂无标签