blob: 0065e86011c77e01fc513d4f6b06d61231754a26 [file] [log] [blame]
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/testing/perf/test.gni")
_tests = [
"cpp",
"driver_cpp",
"driver_llcpp",
"hlcpp",
"go",
"libfidl",
"llcpp",
"reference",
"rust",
]
_benchmarks = []
_test_packages = []
foreach(test, _tests) {
_benchmark_name = "fidl_microbenchmarks_${test}"
fuchsia_component_perf_test("${_benchmark_name}") {
package = "${test}:fidl_microbenchmarks_${test}"
component_name = "benchmark"
expected_metric_names_filepath = "//src/tests/end_to_end/perf/expected_metric_names/fuchsia.fidl_microbenchmarks.${test}.txt"
if (test == "rust") {
process_runs = 1
} else if (test == "go") {
process_runs = 1
results_path_test_arg = "--out_file"
} else {
process_runs = 6
results_path_test_arg = "--out"
test_component_args = [
"-p",
"--quiet",
]
}
}
_test_packages += [ "${test}:fidl_microbenchmarks_${test}" ]
_benchmarks += [ ":${_benchmark_name}" ]
}
group("benchmarks") {
testonly = true
deps = [ "fidlc:benchmarks" ] + _benchmarks
}
group("tests") {
testonly = true
deps = [ "fidlc:fidlc_microbenchmarks" ] + _test_packages
}