Skip to content

Commit

Permalink
updated benchmark script
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoss committed Nov 6, 2014
1 parent 654ad8f commit 4759454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bm_in_find_by_sql.rb
Expand Up @@ -37,10 +37,10 @@ def down
nodes = []

puts "Creating records..."
10.times do |i|
100.times do |i|
nodes[i] = []
parent = Node.create(name: "root_#{i}")
10.times do |j|
50.times do |j|
node = Node.new(name: "node_#{i}_#{j}")
_parent = nodes[i][rand(nodes[i].size)] || parent
node.parent_id = _parent.id
Expand Down

0 comments on commit 4759454

Please sign in to comment.