Initial code for frequency benchmark.