There’s an implementation in C which should run in well under 2 seconds on your M3.
`bin/analyze measurements.txt 30.34s user 16.28s system 629% cpu 7.406 total`
With SIMD and certain assumptions about the input this can seemingly be further reduced to well under a second, eg see https://github.com/gunnarmorling/1brc/discussions/138.