Categories: None [Edit]

complexity_assert

https://rubygems.org/gems/complexity_assert
https://github.com/philou/complexity-assert
They are some performance critical pieces of code that will be executed on huge data sets, which we want to make sure will run fast enough. Unfortunately, enforcing this is not easy, often requiring large scale and slow benchmarks. This rspec library (the result of an experiment to learn machine learning) uses linear regression to determine the time complexity (Big O notation, O(x)) of a piece of code and to check that it is at least as good as what we expect. This does not require huge data sets (only a few large ones) and can be written as any unit test (not as fast though).

Total

Ranking: 53,393 of 190,469
Downloads: 20,856

Daily

Ranking: 27,005 of 190,443
Downloads: 6

Depended by

RankDownloadsName
1,85616,864,035zip_tricks
4,3572,071,418zip_kit
37,39933,628interval_response

Depends on

RankDownloadsName
13,252,447,659bundler
81,259,155,611rake
29958,915,034rspec

Owners

#GravatarHandle
1iconphilou