If you need to benchmark something, the fastest way is to use the time shell builtin. Often times you want to run the same command multiple times to account for filesystem cache warmup and eliminate statistical outliers. In those cases comparing time outputs and remembering to preface every command with that command can be time intensive (hehe). Instead of time you can use hyperfine which has much more options and automates much of the boring statistical work.