Reduce work to 100 if on valgrind.