Crate big_o_test
source · [−]Expand description
THIS IS IN lib.rs
Re-exports
Modules
Contains conditional compilation definitions attending to:
THIS IS IN big-o.rs
Exports time & space algorithm complexity analysis functions, as well as the needed types to operate on them. See:
Global allocator (wrapper around the System’s default allocator) capable of gathering allocation/de-allocation/re-allocation metrics and (min, max) memory usage between two (or more) points in time.
Macros
experimental/rudimentary assertion macro to let an ‘observed_complexity’ better than ‘expected_complexity’ to pass, in the hope to reduce false-negative test failures
Structs
Enums
Possible time & space complexity analysis results, in big-O notation. Results are for a single operation – remember a pass have several operations, so the time for the analysis should have ‘* 2 * p’ added – ‘p’ being the size for each one of the 2 passes required for the analysis.