adding ifdebug handling, adding benchmark and --run-benchmark command line option