/** * Copyright 2007-2013 IMP Inventors. All rights reserved. */ #include #include #include /** This benchmark does nothing and is here to experiment with benchmarking support.*/ int main(int argc, char** argv) { IMP::base::setup_from_argv(argc, argv, "show what benchmarks look like"); { double sum=0, time; IMP_TIME({ for (unsigned int i=0; i< 100; ++i) { double *d= new double(i); std::size_t iv= reinterpret_cast(d); sum+=iv; delete d; } }, time); IMP::benchmark::report("alloc and free", "current",time, sum); } return IMP::benchmark::get_return_value(); }