add test to compare the performance between if else keyword and switch
case