Input: Array(1000)
topKFrequent original x 7,326 ops/sec ±4.42% (80 runs sampled)
topKFrequent refactored x 17,313 ops/sec ±4.53% (82 runs sampled)
topKFrequent top x 5,795 ops/sec ±1.62% (86 runs sampled)
Fastest is topKFrequent refactored
Process finished with exit code 0