adding benchmark script to array
performance boost for getMinOrMax