#include #include "bench.h" #include "cpp-stack.h" int main(int argc, char** argv) { srand(20171025); stack s; REPEAT_TIMED( "push_int", s.push( rand() ); ) stack t; TIMED( "copy_int", t = s; ) TIMED( "clear_int", s.clear(); ) int sum; REPEAT_TIMED( "pop_int", sum += t.pop(); ) }