blob: bdb0a54e8169ea235321e1361f4518edf302f9b8 [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/components.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("bin") {
output_name = "archivist_benchmarks"
edition = "2018"
force_opt = "z"
# Match configs on archivist
configs += [ "//build/config/lto:thinlto" ]
configs -= [ "//build/config/lto:thinlto" ]
configs += [ "//build/config/lto:thinlto" ]
configs -= [ "//build/config/fuchsia:dynamic_rust_standard_library" ]
deps = [
"//src/developer/fuchsia-criterion",
"//src/diagnostics/archivist:lib",
]
sources = [ "src/main.rs" ]
}
fuchsia_shell_package("archivist-benchmarks") {
deps = [ ":bin" ]
}
group("bench") {
testonly = true
deps = [
":archivist-benchmarks",
":bin",
]
}