benchmark & baseline
benchmark ,是基准的意思。而baseline是基准线的意思,两者有类似的成分,看一下英文解释:
a baseline is a measurement or state at a point in time
这里关键词是 state 和 a point in time
a benchmark is a measurement if a industry standard, the best practice or competitor
这里关键词是 industry standard 和 practice 以及 competitor
从字面意思就很明确了。
- benchmark
benchmark的“标准”表示的时间和范围更广泛,比如工业标准、流程。是一种当前最佳的方法,或者算法。
举例(内部排序算法),其中不同排序算法的比较,包括快速排序(简称快排)、选择排序等10种常见的排序算法,内部排序算法benchmark就是当前最好的内部排序算法所能达到的指标。
如当前最快的汽车是汽车速度的benckmark,最快的飞机是飞机速度benchmark。
- baseline
baseline更具体和细化,时间也更及时,是一条“合格”线,更多用在类似方法中对该方法的创新或者提升
一般是细节性的改进用baseline去衡量,如 A改进了快排称为快排A,B改进了快排称为快排B。快排A和快排B比较就可以看看能否超过之前快排的baseline。
参考
https://simplicable.com/new/baseline-vs-benchmark