1// Build the benchmarks for audio_utils 2 3package { 4 default_team: "trendy_team_android_media_audio_framework", 5 // http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // the below license kinds from "system_media_license": 8 // SPDX-license-identifier-Apache-2.0 9 default_applicable_licenses: ["system_media_license"], 10} 11 12cc_benchmark { 13 name: "audio_mutex_benchmark", 14 15 srcs: ["audio_mutex_benchmark.cpp"], 16 cflags: [ 17 "-Wall", 18 "-Werror", 19 ], 20 21 shared_libs: [ 22 "libaudioutils", 23 "libbase", 24 "liblog", 25 "libutils", 26 ], 27} 28 29cc_benchmark { 30 name: "audio_power_benchmark", 31 host_supported: true, 32 33 srcs: ["audio_power_benchmark.cpp"], 34 cflags: [ 35 "-Wall", 36 "-Werror", 37 "-Wextra", 38 ], 39 shared_libs: [ 40 "libbase", 41 "liblog", 42 ], 43 static_libs: [ 44 "libaudioutils", 45 ], 46} 47 48cc_benchmark { 49 name: "audio_vectorization_benchmark", 50 host_supported: true, 51 52 srcs: ["audio_vectorization_benchmark.cpp"], 53 cflags: [ 54 "-Wall", 55 "-Werror", 56 ], 57} 58 59cc_benchmark { 60 name: "biquad_filter_benchmark", 61 host_supported: true, 62 63 srcs: ["biquad_filter_benchmark.cpp"], 64 cflags: [ 65 "-Wall", 66 "-Werror", 67 "-ffast-math", 68 "-fhonor-infinities", 69 "-fhonor-nans", 70 // "-fno-vectorize", // (test only) 71 // "-fno-slp-vectorize", // (test only) 72 ], 73 static_libs: [ 74 "libaudioutils", 75 ], 76} 77 78cc_benchmark { 79 name: "channelmix_benchmark", 80 host_supported: true, 81 82 srcs: ["channelmix_benchmark.cpp"], 83 cflags: [ 84 "-Wall", 85 "-Werror", 86 "-Wextra", 87 ], 88 static_libs: [ 89 "libaudioutils", 90 ], 91} 92 93cc_benchmark { 94 name: "intrinsic_benchmark", 95 // No need to enable for host, as this is used to compare NEON which isn't supported by the host 96 host_supported: false, 97 98 srcs: ["intrinsic_benchmark.cpp"], 99 cflags: [ 100 "-Wall", 101 "-Werror", 102 "-ffast-math", 103 "-fhonor-infinities", 104 "-fhonor-nans", 105 // "-fno-vectorize", // (test only) 106 // "-fno-slp-vectorize", // (test only) 107 ], 108 static_libs: [ 109 "libaudioutils", 110 ], 111} 112 113cc_benchmark { 114 name: "primitives_benchmark", 115 host_supported: true, 116 target: { 117 darwin: { 118 enabled: false, 119 }, 120 }, 121 122 srcs: ["primitives_benchmark.cpp"], 123 cflags: [ 124 "-Wall", 125 "-Werror", 126 ], 127 static_libs: [ 128 "libaudioutils", 129 ], 130} 131 132cc_benchmark { 133 name: "statistics_benchmark", 134 host_supported: true, 135 136 srcs: ["statistics_benchmark.cpp"], 137 cflags: [ 138 "-Wall", 139 "-Werror", 140 ], 141 static_libs: [ 142 "libaudioutils", 143 ], 144} 145