scala-dev icon indicating copy to clipboard operation
scala-dev copied to clipboard

document & *test* asymptotic complexity of collection operations

Open adriaanm opened this issue 7 years ago • 4 comments
trafficstars

I believe there was a framework by @axel22 that does this. Was it scalameter?

See also http://docs.scala-lang.org/overviews/collections/performance-characteristics.html, which should be updated, rendered in the source and then enforced using automated regression testing.

adriaanm avatar Nov 28 '17 23:11 adriaanm

No, ScalaMeter does not do this by default, its main goal is measuring absolute performance numbers.

axel22 avatar Nov 28 '17 23:11 axel22

You're right. I was trying to remember which tool measures/tests asymptotic complexity and your name popped up. Have you perhaps authored something else that does this? :-) Or does it ring a bell?

adriaanm avatar Nov 28 '17 23:11 adriaanm

No, I didn't do anything like that. I think @jsuereth did something in that direction. Or maybe Rex Kerr? Not sure. :/

axel22 avatar Nov 28 '17 23:11 axel22

Ok, thanks! Rex did https://github.com/Ichoran/thyme, but I don't think that does O(n) either. Maybe I'm just wishful remembering :-)

adriaanm avatar Nov 28 '17 23:11 adriaanm