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: 66,352 of 180,469
Downloads: 12,990

Daily

Ranking: 37,537 of 180,459
Downloads: 1

Depended by

RankDownloadsName
1,66612,487,268zip_tricks
35,67729,754interval_response
57,09916,042zip_kit

Depends on

RankDownloadsName
12,076,932,340bundler
16854,040,010rake
23768,094,638rspec

Owners

#GravatarHandle
1iconphilou