scalameter

Can I use ScalaMeter with no input?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 13:38:33
问题 I want to benchmark the runtime of several methods in my Scala application, and I am looking into using ScalaMeter. Let's say I want to measure the time of a method called doSomething() . I only want to call doSomething and measure the time it takes to run once. However all of the documentation I see for ScalaMeter requires providing some kind of input, whether it is a series of integers, a string, or something. Is it possible to use ScalaMeter to do what I am asking? Is it an appropriate use