summaryrefslogtreecommitdiff
path: root/benchmarks/spawn/noop.cpp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2019-09-26 12:47:47 -0700
committerRyan Prichard <rprichard@google.com>2019-09-26 16:18:37 -0700
commit2c236bc5068e759e12253ca71f62d08c9be70484 (patch)
tree5719d7f39ce9e6fb5a67df14f03b799bc439f82a /benchmarks/spawn/noop.cpp
parent0878ac991af7b784b3d61f406b73d33703d56fed (diff)
Revert "Revert "Add benchmarks that run simple programs""
This reverts commit 3bf27c86d1327a5a66bf06af07027c4f1a37d358. Disable the 32-bit glibc target. We're not interested in benchmarking that target, and the bench_noop_nostl executable doesn't build when ASAN is turned on, because the libclang_rt.asan_cxx-i386.a lib contains ubsan_type_hash_itanium.cc.o, which needs __dynamic_cast and various STL typeinfo variables. The equivalent libclang_rt.asan_cxx-x86_64.a lib doesn't have ubsan_type_hash_itanium.cc.o in it. Bug: http://b/141693636 Test: m bench_noop_nostl bench_noop bench_noop_static ASAN_OPTIONS=detect_leaks=0 SANITIZE_HOST=address Change-Id: Id6de17e622682f3a166367ad670cba5bfa6aee47
Diffstat (limited to 'benchmarks/spawn/noop.cpp')
-rw-r--r--benchmarks/spawn/noop.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/benchmarks/spawn/noop.cpp b/benchmarks/spawn/noop.cpp
new file mode 100644
index 000000000..1f1cac037
--- /dev/null
+++ b/benchmarks/spawn/noop.cpp
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2019 The Android Open Source Project
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+int main() {
+ return 0;
+}