Created
May 23, 2017 18:09
-
-
Save kstevens715/9f944c555f0a55a9fcb2f2c3cba7d039 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 'benchmark' | |
class Lots | |
def run | |
time = Benchmark.realtime do | |
10_000.times do |n| | |
n = n.to_s | |
puts n | |
l = GlobalLookup.new(identifier: n, name: n) | |
l.type = 'TempTest2' | |
l.save(validate: false) | |
end | |
end | |
puts "Time: #{time}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment