quick and dirty code for benchmarking