by mike31fr · 1y ago · 0 comments
A commenter in this thread mentioned sifting through log / debug output… but why wouldn‘t you pipe it to a file instead?
1. Create a file with 1 million lines:
for i in {1..1000000}; do echo "Line $i: This is a test of terminal performance."; done > bigfile.txt
2. cat the file and see how much time it takes: time cat bigfile.txt
RESULTS:- iterm2: 3.5s
- Default macOS terminal: 2.3s
- Ghostty: 1.8s
Rendering huge stdout/stderr can be a bottleneck. Try running a program that writes half a million lines of text to stdout without file redirects and a lot of terminal emulators will struggle to keep up.