Open anthonylau opened 8 years ago
Hi,
You should be using a an OfflineReport
benchmark template, which generates an HTML report and does not report performance regressions (explanations of benchmark templates are in the docs). LocalTime
should only measure the time and not produce any output.
You can see all the different benchmark templates here:
https://github.com/scalameter/scalameter/blob/master/src/main/scala/org/scalameter/Bench.scala
In case you need something more custom, then in the source code, you can also see how to set a custom measurer, warmer, reporter, etc. from how the benchmark templates are defined.
If you need already completed working examples, there is an examples directory at GitHub:
https://github.com/scalameter/scalameter-examples
This is an example of OfflineRegressionReport
.
Thanks a lot! But I come into this issue
[error] Could not run test TestBenchmark: java.lang.VerifyError: class com.fasterxml.jackson.module.scala.ser.ScalaIteratorSerializer overrides final method withResolved.(Lcom/fasterxml/jackson/databind/BeanProperty;Lcom/fasterxml/jackson/databind/jsontype/TypeSerializer;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/ser/std/AsArraySerializerBase;
I have searched around, seems there is a conflict between fasterxml and jackson.
Fixed by excluding exclude("com.fasterxml.jackson.core", "jackson-databind")
Thanks for reporting. This conflict is something we will need to fix for the next version.
@axel22, thanks for the tip! I stumbled over the same problem with empty HTML reports.
Not sure what was wrong. Would anyone advise?