You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.6 KiB
78 lines
1.6 KiB
7 months ago
|
// Build the benchmarks for audio_utils
|
||
|
|
||
|
package {
|
||
|
// http://go/android-license-faq
|
||
|
// A large-scale-change added 'default_applicable_licenses' to import
|
||
|
// the below license kinds from "system_media_license":
|
||
|
// SPDX-license-identifier-Apache-2.0
|
||
|
default_applicable_licenses: ["system_media_license"],
|
||
|
}
|
||
|
|
||
|
cc_benchmark {
|
||
|
name: "biquad_filter_benchmark",
|
||
|
host_supported: true,
|
||
|
|
||
|
srcs: ["biquad_filter_benchmark.cpp"],
|
||
|
cflags: [
|
||
|
"-Werror",
|
||
|
"-Wall",
|
||
|
"-ffast-math",
|
||
|
// "-fno-vectorize", // (test only)
|
||
|
// "-fno-slp-vectorize", // (test only)
|
||
|
],
|
||
|
static_libs: [
|
||
|
"libaudioutils",
|
||
|
],
|
||
|
}
|
||
|
|
||
|
cc_benchmark {
|
||
|
name: "intrinsic_benchmark",
|
||
|
// No need to enable for host, as this is used to compare NEON which isn't supported by the host
|
||
|
host_supported: false,
|
||
|
|
||
|
srcs: ["intrinsic_benchmark.cpp"],
|
||
|
cflags: [
|
||
|
"-Werror",
|
||
|
"-Wall",
|
||
|
"-ffast-math",
|
||
|
// "-fno-vectorize", // (test only)
|
||
|
// "-fno-slp-vectorize", // (test only)
|
||
|
],
|
||
|
static_libs: [
|
||
|
"libaudioutils",
|
||
|
],
|
||
|
}
|
||
|
|
||
|
cc_benchmark {
|
||
|
name: "primitives_benchmark",
|
||
|
host_supported: true,
|
||
|
target: {
|
||
|
darwin: {
|
||
|
enabled: false,
|
||
|
},
|
||
|
},
|
||
|
|
||
|
srcs: ["primitives_benchmark.cpp"],
|
||
|
cflags: [
|
||
|
"-Werror",
|
||
|
"-Wall",
|
||
|
],
|
||
|
static_libs: [
|
||
|
"libaudioutils",
|
||
|
],
|
||
|
}
|
||
|
|
||
|
cc_benchmark {
|
||
|
name: "statistics_benchmark",
|
||
|
host_supported: true,
|
||
|
|
||
|
srcs: ["statistics_benchmark.cpp"],
|
||
|
cflags: [
|
||
|
"-Werror",
|
||
|
"-Wall",
|
||
|
],
|
||
|
static_libs: [
|
||
|
"libaudioutils",
|
||
|
],
|
||
|
}
|