-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestPerfMain.rb
More file actions
executable file
·27 lines (25 loc) · 940 Bytes
/
testPerfMain.rb
File metadata and controls
executable file
·27 lines (25 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/ruby
require "runPatternCommon.rb"
###############################################################################
#
###############################################################################
exec = []
exec[0] = "#{ENV['HOME']}/07-Work/git/openHEVC/build/release/hevc"
exec[1] = "#{ENV['HOME']}/07-Work/workspace/HEVC/HM-12.0-dev/bin/TAppDecoderStatic"
output = []
output[0] = "openHEVC"
output[1] = "HM"
pattern = "#{ENV['HOME']}/06-Videos/03-HEVC/HEVC_HM-11"
###############################################################################
#
###############################################################################
if File.exist?("perf") then
deleteDir("perf")
end
Dir.mkdir("perf")
["i_main", "ld_main", "lp_main", "ra_main"].each do |dir|
for i in 0 .. 1 do
cmd = "./runPattern.rb -exec #{exec[i]} -dir #{pattern}/#{dir} -noCheck > perf/#{output[i]}_#{dir}.txt"
system(cmd)
end
end