Updated script so that we generate a small and a large file.

This commit is contained in:
Daniel Lemire 2020-03-23 14:06:10 -04:00
parent 3e39a998ce
commit 772a5dc3d5
1 changed files with 15 additions and 0 deletions

View File

@ -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