Make 'f' a tuple. Add benchmarks.