I am currently using ScalaMeter to compare different API's and the performance of the API's. The test currently is very simple, since the API's are segregated, however I was wondering if there is a way to report the % difference between runs (instead of having to manually read the output of the runs in the logs and divide 2 numbers to provide a percentage).
Like in terms of code, something like
lazy val a = performance of "API ONE" in {
measure method "A" in {
using(strings) in {
s => apiOne.someCall
}
}
}
lazy val b = performance of "API TWO" in {
measure method "A" in {
using(strings) in {
s => apiTwo.someCall
}
}
}
compareResult = compare(a,b)
Does something like this exist?