Updated script so that we generate a small and a large file.
This commit is contained in:
parent
3e39a998ce
commit
772a5dc3d5
|
@ -1,6 +1,21 @@
|
|||
#!/usr/bin/env ruby
|
||||
require 'json'
|
||||
|
||||
y = []
|
||||
|
||||
10000.times do
|
||||
h = {
|
||||
'x' => rand,
|
||||
'y' => rand,
|
||||
'z' => rand,
|
||||
'name' => ('a'..'z').to_a.shuffle[0..5].join + ' ' + rand(10000).to_s,
|
||||
'opts' => {'1' => [1, true]},
|
||||
}
|
||||
y << h
|
||||
end
|
||||
|
||||
File.open("2.json", 'w') { |f| f.write JSON.pretty_generate('coordinates' => y, 'info' => "some info") }
|
||||
|
||||
x = []
|
||||
|
||||
524288.times do
|
||||
|
|
Loading…
Reference in New Issue