空手道输出表中的效率字段代表什么?效率相比呢? [英] What does the Efficiency field in the Karate output table represent? Efficiency compared to what?

查看:51
本文介绍了空手道输出表中的效率字段代表什么?效率相比呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道控制台的空手道输出表中的效率字段代表什么. 我执行测试后看到的值为0.98,因此效率为98%.但是相比之下呢?

我想没有人比这个问题早.

解决方案

通过源进行简单搜索( https://github.com/intuit/karate/blob/9992eaf8d7b9dd637477a0970de1a1187b820fc2/karate-core/src/main/java/com /intuit/karate/Results.java#L163 )

告诉我们:

public double getEfficiency() {
    return timeTakenMillis / (getElapsedTime() * threadCount);
}

如果我正确理解度量标准,则表示我们使用线程的效率如何.如果为efficiency == 1,则所有线程均已完全使用.

除非您拥有多个线程,否则该度量标准不会提供任何有意义的信息.

有关统计信息的更多信息: https://stackoverflow.com/a/62958327/143475

I was wondering as to what the Efficiency field in the Karate output table in the console represent. I see it has a value of 0.98 after i execute my tests, so it is 98% efficient. But compared to what?

Seems no one had this question earlier i suppose.

解决方案

Simple search through the source (https://github.com/intuit/karate/blob/9992eaf8d7b9dd637477a0970de1a1187b820fc2/karate-core/src/main/java/com/intuit/karate/Results.java#L163)

tells us that:

public double getEfficiency() {
    return timeTakenMillis / (getElapsedTime() * threadCount);
}

If I understood the metric correctly, it means how efficiently we are using threads. If efficiency == 1 then all threads are fully used.

The metric doesn't give any meaningful information unless you have more than 1 thread.

EDIT: more information on the stats: https://stackoverflow.com/a/62958327/143475

这篇关于空手道输出表中的效率字段代表什么?效率相比呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆