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,067 of 188,757
Downloads: 20,718

Daily

Ranking: 87,276 of 188,742
Downloads: 0

Depended by

RankDownloadsName
1,84116,321,274zip_tricks
4,6561,681,700zip_kit
37,21233,329interval_response

Depends on

RankDownloadsName
13,119,417,231bundler
101,202,260,445rake
29941,173,382rspec

Owners

#GravatarHandle
1iconphilou