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,969 of 196,658
Downloads: 21,786

Daily

Ranking: 67,232 of 196,619
Downloads: 2

Depended by

RankDownloadsName
1,86018,588,300zip_tricks
3,7383,430,901zip_kit
38,44934,483interval_response

Depends on

RankDownloadsName
13,750,343,576bundler
81,416,600,134rake
291,020,526,382rspec

Owners

#GravatarHandle
1iconphilou