1// Build the benchmarks for audio_utils
2
3package {
4    // http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // the below license kinds from "system_media_license":
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["system_media_license"],
9}
10
11cc_benchmark {
12    name: "biquad_filter_benchmark",
13    host_supported: true,
14
15    srcs: ["biquad_filter_benchmark.cpp"],
16    cflags: [
17        "-Werror",
18        "-Wall",
19        "-ffast-math",
20      //  "-fno-vectorize",      // (test only)
21      //  "-fno-slp-vectorize",  // (test only)
22    ],
23    static_libs: [
24        "libaudioutils",
25    ],
26}
27
28cc_benchmark {
29    name: "channelmix_benchmark",
30    host_supported: true,
31
32    srcs: ["channelmix_benchmark.cpp"],
33    cflags: [
34        "-Wall",
35        "-Werror",
36        "-Wextra",
37    ],
38    static_libs: [
39        "libaudioutils",
40    ],
41}
42
43cc_benchmark {
44    name: "intrinsic_benchmark",
45    // No need to enable for host, as this is used to compare NEON which isn't supported by the host
46    host_supported: false,
47
48    srcs: ["intrinsic_benchmark.cpp"],
49    cflags: [
50        "-Werror",
51        "-Wall",
52        "-ffast-math",
53      //  "-fno-vectorize",      // (test only)
54      //  "-fno-slp-vectorize",  // (test only)
55    ],
56    static_libs: [
57        "libaudioutils",
58    ],
59}
60
61cc_benchmark {
62    name: "primitives_benchmark",
63    host_supported: true,
64    target: {
65        darwin: {
66            enabled: false,
67        },
68    },
69
70    srcs: ["primitives_benchmark.cpp"],
71    cflags: [
72        "-Werror",
73        "-Wall",
74    ],
75    static_libs: [
76        "libaudioutils",
77    ],
78}
79
80cc_benchmark {
81    name: "statistics_benchmark",
82    host_supported: true,
83
84    srcs: ["statistics_benchmark.cpp"],
85    cflags: [
86        "-Werror",
87        "-Wall",
88    ],
89    static_libs: [
90        "libaudioutils",
91    ],
92}
93