| # 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/components.gni") |
| |
| executable("udp_benchmark_bin") { |
| testonly = true |
| output_name = "udp_benchmark" |
| sources = [ |
| "udp_benchmark.cc", |
| "util.cc", |
| "util.h", |
| ] |
| |
| deps = [ |
| "//src/lib/fsl", |
| "//src/lib/fxl", |
| "//zircon/public/lib/fbl", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/trace", |
| "//zircon/system/ulib/trace-provider:trace-provider-with-fdio", |
| ] |
| } |
| |
| fuchsia_component("udp-benchmark") { |
| testonly = true |
| deps = [ ":udp_benchmark_bin" ] |
| manifest = "meta/udp_benchmark.cmx" |
| } |
| |
| fuchsia_package("netstack-benchmarks") { |
| testonly = true |
| deps = [ ":udp-benchmark" ] |
| } |
| |
| group("benchmarks") { |
| testonly = true |
| deps = [ ":netstack-benchmarks" ] |
| } |