Lots of languages have packages for benchmarking. But writing code to do that is a pain when you just care about getting a sense of how fast it is as a whole.

hyperfine is a nice tool for measuring that.