Last active
August 29, 2015 14:19
-
-
Save aaronjensen/6860a53d74ff03eecca8 to your computer and use it in GitHub Desktop.
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
require 'socket' | |
require 'benchmark' | |
puts Benchmark.measure { Socket::gethostbyname(Socket::gethostname) } | |
# 0.000000 0.000000 0.000000 ( 5.004441) | |
# fix, in /etc/hosts: 127.0.0.1 localhost my-host.local | |
# OR: enable IPv6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment