Skip to content

Instantly share code, notes, and snippets.

@envp
Created March 19, 2016 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save envp/ae2b152e3bbbd93060d7 to your computer and use it in GitHub Desktop.
Save envp/ae2b152e3bbbd93060d7 to your computer and use it in GitHub Desktop.
require 'benchmark'
require 'pcg_random'
def m
Random.new_seed
end
def n
PCGRandom.new_seed
end
puts "Random.new_seed"
t = Time.now
puts m
puts (Time.now - t)
puts "PCGRandom.new_seed"
t = Time.now
puts n
puts (Time.now - t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment