Benchmarking `bun run` and `bun build` with `hyperfine`
When writing small tools that support me with my daily work, I usually opted to shell-scripting with sh
, bash
or
even zsh
because I find the concept of piping text from one command to another pretty appealing. It's a
straightforward and powerful concept that doesn't require a lot of set up: most CLI tools operate on a per-line
basis, so it's a bliss to combine them.
The situation becomes more challenging when I need to work on JSONs, which are more natural in the JavaScript world,
where I often work in. Usually, I opted for jq
to parse JSON into line-based data, but I keep forgetting its
syntax, which also can turn out complex and difficult to read.