refactor perf test
add test for Max and Min