Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add 1 more metric
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Oct 9, 2018
1 parent 47bd2b0 commit caa0638
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ object ScalaInferenceBenchmark {
val times: Seq[Long] = inferenceTimes
val p50 = percentile(50, times)
val p99 = percentile(99, times)
val p90 = percentile(90, times)
val average = times.sum / (times.length * 1.0)

logger.info("\n%s_p99 %d, %s_p50 %d, %s_average %1.2f".format(metricsPrefix,
p99, metricsPrefix, p50, metricsPrefix, average))
logger.info("\n%s_p99 %d, %s_p90 %d, %s_p50 %d, %s_average %1.2f".format(metricsPrefix,
p99, metricsPrefix, p90, metricsPrefix, p50, metricsPrefix, average))

}

Expand Down

0 comments on commit caa0638

Please sign in to comment.