[MRG] speedup examples when in batch mode