Created
November 16, 2019 14:55
-
-
Save p3nj/8f5498d793ff205ae058913e35823b4b to your computer and use it in GitHub Desktop.
A little script to test terminal's performance.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Generate 100MB of random tex. | |
cat /dev/urandom | base64 | dd of=/tmp/randomdata bs=1024 count=100k | |
# Test. Repeat for each terminal... | |
# Results are written to bench_XXX.txt | |
# This also shows MB/s very nicely thanks to `dd`. | |
{ time dd if=/tmp/randomdata bs=10240; } 2> bench_XXX.txt | |
# Alacritty: 3.485s | |
# Kitty: 5.293s | |
# iTerm2: 52.048s | |
# Terminal: Crashed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment