Skip to content

Instantly share code, notes, and snippets.

View ogarci5's full-sized avatar

Oliver Garcia ogarci5

  • Elevate Systems
View GitHub Profile
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 192.168.2.39.63100 192.168.2.1.443 ESTABLISHED
tcp4 0 0 192.168.2.39.63094 192.168.2.40.2869 SYN_SENT
tcp4 0 0 192.168.2.39.63093 192.168.1.79.56790 SYN_SENT
tcp4 0 0 192.168.2.39.63092 192.168.1.228.1900 SYN_SENT
tcp4 0 0 192.168.2.39.63091 192.168.2.40.2869 SYN_SENT
tcp4 0 0 192.168.2.39.63090 192.168.1.79.56790 SYN_SENT
tcp4 0 0 192.168.2.39.63089 192.168.1.228.1900 SYN_SENT
tcp4 0 0 192.168.2.39.63086 192.168.2.40.2869 SYN_SENT
tcp4 0 0 192.168.2.39.63085 192.168.1.79.56790 SYN_SENT
@ogarci5
ogarci5 / benchmark
Created October 20, 2014 22:10
Benchmarking rescue versus conditional
require 'benchmark'
n = 1_000_000
Benchmark.bm do |x|
x.report { n.times {nil.asd if nil} }
x.report { n.times {nil.asd rescue nil} }
end

Keybase proof

I hereby claim:

  • I am ogarci5 on github.
  • I am oliverwgarcia (https://keybase.io/oliverwgarcia) on keybase.
  • I have a public key whose fingerprint is CB80 F0CD 51C6 4424 4C23 61AD A7BE 44E1 6809 4762

To claim this, I am signing this object: