Closed anapsix closed 3 years ago
@anapsix thank you for reporting this. I actually ran into the same bug recently and haven't had time to document it. I haven't dug in, but I believe that this benchmark needs to be swapped out for a Time.measure call.
I was wondering if that's what causing it. I'll look into making PR tomorrow, unless you get around it before then.
Yes, I suspect the reason is that Benchmark purposely ignores time while a thread is sleeping. When I added that, Time did not have a #measure method yet.
closed by #57
Please clarify what
finished and took ...
log output measures.It looks like it does not actually reflect how long the job took to complete.
Crystal version:
0.35.1
Mosquito Shard version:0.4.4
Example code:
Output: