fix linting and add benchmarks for multi-methods