Level up your terminal game
Tags: terminal, kitty, iterm2, alacritty
Published: 2018-08-01 16:56:12

---
title: Level up your terminal game
published: true
description: iterm2 is great, but kitty will knock your socks off    
tags: terminal, kitty, iterm2, alacritty
---

A co-worker posted a link about [alacritty](https://github.com/jwilm/alacritty) in our company slack channel. Alacritty is a gpu-based terminal rendering console application written in Rust. I'm on a mac on my desktop, so I had to fumble around with Rust to get it going, thanks to [homebrew](https://brew.sh/) it was pretty easy. 

I was pretty floored to find out just how amazing it's performance is. I've used [iTerm](https://www.iterm2.com/) since I switched to Mac in 2009ish and have a lot of my workflow integrated with iTerm. What I really wasn't prepared for was just how much more I should be expecting out of a terminal application.

I ran some basic tests using [rg](https://github.com/BurntSushi/ripgrep) that I knew would pour output to the terminal. My test was I was in my projects directory and simply searched for 'perl'. It returns an mixed bag of ascii and binary text, 176002 lines to be exact.

So I timed each output in my terminal. This is *NOT* the best method for a test, I understand that. However, the results were striking regardless:

 - [alacritty](https://github.com/jwilm/alacritty): rg perl 7.28s user 28.04s system 21% cpu 2:43.80 total
 - [iTerm](https://www.iterm2.com/): rg perl 7.15s user 26.87s system 0% cpu 58:14.69 total
 - [kitty](https://github.com/kovidgoyal/kitty): rg perl 6.26s user 19.47s system 11% cpu 3:35.96 total
 - [hyper](https://hyper.is/): rg perl 6.65s user 16.02s system 25% cpu 1:27.68 total

alacritty was astounding at how fast it scrolled data, and scrollback was as fast as I could scroll my mouse wheel.

iterm2 was exactly how I expected it to be, fine.

kitty felt just like alactritty, but feels like a much more mature project.

hyper *was* the terminal I thought I was going to move to, because I enjoyed the configurability of it, and wingdings it adds, however, it performed only marginally better than iterm2. My test result unfortunately didn't support my feeling, hyper's 'time' result came back worse than iTerm2, but it definitely finished faster. 

So, the differences were intense, and mindblowing. It took Alacritty about 3 minutes to send everything. Iterm2 took nearly an hour. Kitty was about a minute longer than Alacritty. However, it was clear, alacritty/kitty/gpu-based terminal emulators provided unbelievable performance.

For me, Kitty is a great choice. It feels a little more mature, and was available via homebrew (brew install kitty), and works great on my Antergos linux destktop. Scrolling in vim, and tmux scrollback is silky smooth, and the fonts (once you work it out) is amazing. ~~I use powerline9k and prezto~~, and kitty handles my prompt no problem.

Kitty/Alacritty requires manual configuration files, and getting your fonts right can be a challenge. If you're on a mac, you can save yourself a shitload of time with this command `fc-list : family | rg -i powerline` That will give you the font to put in the config. 

If you have a better way to test terminal performance I'd love to try it.