Skip to content

Instantly share code, notes, and snippets.

Focusing on @planetargon at the moment

Robby Russell robbyrussell

Focusing on @planetargon at the moment
View GitHub Profile
lodestone /
Last active Mar 19, 2018
A Small Ruby vs Crystal Comparison

A Small Ruby vs Crystal Test

I recently had to write a quick script to update a text file full of pdf annotations. I wrote the script in Ruby then I wondered how much of a difference in speed I would get if I turned it into Crystal. See below.

View how-to-answer-unsolicited-phone-calls.textile

This is my script for handling unsolicited sales calls. I can tell by the caller id as they usually come in on our second (unpublished) phone number.


  • _for best effect… leave off ‘Thank’ to make it sound like the tape already started…

The Script

Thank you for calling Planet Argon. If you know your party’s extension, please say or enter it followed by the pound key.