Commit 40aac84
Changed files (2)
bin
spec
bin/perf.sh
@@ -12,7 +12,8 @@ gnuplot << EOF
set term png
set output "tmp/graphs/$FILENAME.png"
set datafile separator ","
- set yrange [0:100]
+ set yrange [0:500]
+ set xrange [0:500000]
plot 'tmp/input.csv' with line
EOF
spec/triplet_sum_spec.rb
@@ -161,7 +161,7 @@ describe "triplet sum" do
filename = "tmp/input.csv"
File.unlink(filename) if File.exist?(filename)
File.open(filename, "w") do |file|
- 100.times do |n|
+ 500.times do |n|
total = (n + 1) * 1_000
items = Array.new(total) { rand(total) }
target = rand(total)