aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/features/benchmark/rankingexpression/run.rb
blob: 0621b912b86473ca3378c4c850a3e72e350a600d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
if ARGV.size == 0
  puts "must specify folder"
  exit
end

folder = ARGV[0]
trees = [1, 5, 10, 50, 100, 200, 400, 800]
trees.each do |t|
  file = "c-#{t}"
  cmd = "script -c \"../../featurebenchmark -c #{file}.txt\" " + folder + "/#{file}.out"
  puts cmd
    `#{cmd}`
end