% hyperfine --warmup 3 'perl re.pl sample.txt' 'python3 re.py sample.txt' Benchmark 1: perl re.pl sample.txt Time (mean ± σ): 232.9 ms ± 2.2 ms [User: 132.1 ms, System: 99.5 ms] Range (min … max): 230.8 ms … 238.4 ms 12 runs Benchmark 2: python3 re.py sample.txt Time (mean ± σ): 373.3 ms ± 5.6 ms [User: 246.1 ms, System: 125.4 ms] Range (min … max): 365.5 ms … 383.7 ms 10 runs Summary perl re.pl sample.txt ran 1.60 ± 0.03 times faster than python3 re.py sample.txt #### mul\(\d{1,3};\d{1,3}\)