add benchmark code, setup search template