PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, August 18, 2022

[FIXED] What does the Efficiency field in the Karate output table represent? Efficiency compared to what?

 August 18, 2022     karate, output     No comments   

Issue

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.


Solution

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



Answered By - Sulthan
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing