Skip to content

Instantly share code, notes, and snippets.

@p3nj
Created November 16, 2019 14:55
Show Gist options
  • Save p3nj/8f5498d793ff205ae058913e35823b4b to your computer and use it in GitHub Desktop.
Save p3nj/8f5498d793ff205ae058913e35823b4b to your computer and use it in GitHub Desktop.
A little script to test terminal's performance.
#!/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