• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: "intrinsic_benchmark",
30    // No need to enable for host, as this is used to compare NEON which isn't supported by the host
31    host_supported: false,
32
33    srcs: ["intrinsic_benchmark.cpp"],
34    cflags: [
35        "-Werror",
36        "-Wall",
37        "-ffast-math",
38      //  "-fno-vectorize",      // (test only)
39      //  "-fno-slp-vectorize",  // (test only)
40    ],
41    static_libs: [
42        "libaudioutils",
43    ],
44}
45
46cc_benchmark {
47    name: "primitives_benchmark",
48    host_supported: true,
49    target: {
50        darwin: {
51            enabled: false,
52        },
53    },
54
55    srcs: ["primitives_benchmark.cpp"],
56    cflags: [
57        "-Werror",
58        "-Wall",
59    ],
60    static_libs: [
61        "libaudioutils",
62    ],
63}
64
65cc_benchmark {
66    name: "statistics_benchmark",
67    host_supported: true,
68
69    srcs: ["statistics_benchmark.cpp"],
70    cflags: [
71        "-Werror",
72        "-Wall",
73    ],
74    static_libs: [
75        "libaudioutils",
76    ],
77}
78