Skip to content

Instantly share code, notes, and snippets.

View wils3005's full-sized avatar

Jack Wilson wils3005

View GitHub Profile
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'benchmark/ips'
Arr = Array.new(1000) { rand }.freeze
class MyClass
def self.call(arg)
new(arg).call
#!/usr/bin/env ruby
require 'benchmark/ips'
require 'securerandom'
class MyClass
FOO = -> { SecureRandom.hex }
def bar
-> { SecureRandom.hex }
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'benchmark/ips'
def num
@num ||= 2**18
end
def foo
### Keybase proof
I hereby claim:
* I am wils3005 on github.
* I am wils3005 (https://keybase.io/wils3005) on keybase.
* I have a public key ASBgUj1fxw1-sgkOMQ6KB8oy5nzS6aEKoQD_bJYv9Lzvhgo
To claim this, I am signing this object: