From 43f2b77c8bbe7dfdabce4f8118e7f43d701300e6 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 26 Jun 2018 10:34:51 -0300 Subject: [PATCH] Add new strcmp/strncmp benchmark This patch adds a new strcmp/strcmp benchmark with different set of inputs. It cover all pre-defined range values (small, medium, large) for aligned inputs and also small range for unaligned ones. Test: Ran new string test suite with a single bionic iteration. Change-Id: Ice78d74c3583a33158eaba3309c10df54044aa28 --- benchmarks/test_suites/test_strcmp.xml | 20 ++++++++++++++++++++ benchmarks/test_suites/test_strncmp.xml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 benchmarks/test_suites/test_strcmp.xml create mode 100644 benchmarks/test_suites/test_strncmp.xml diff --git a/benchmarks/test_suites/test_strcmp.xml b/benchmarks/test_suites/test_strcmp.xml new file mode 100644 index 000000000..17d1b83cc --- /dev/null +++ b/benchmarks/test_suites/test_strcmp.xml @@ -0,0 +1,20 @@ + + BM_string_strcmp + AT_TWOBUF_MANUAL_ALIGN1_0_ALIGN2_0_SIZE_SMALL + + + BM_string_strcmp + AT_TWOBUF_MANUAL_ALIGN1_0_ALIGN2_0_SIZE_MEDIUM + + + BM_string_strcmp + AT_TWOBUF_MANUAL_ALIGN1_4_ALIGN2_0_SIZE_SMALL + + + BM_string_strcmp + AT_TWOBUF_MANUAL_ALIGN1_0_ALIGN2_4_SIZE_SMALL + + + BM_string_strcmp + AT_TWOBUF_MANUAL_ALIGN1_4_ALIGN2_4_SIZE_SMALL + diff --git a/benchmarks/test_suites/test_strncmp.xml b/benchmarks/test_suites/test_strncmp.xml new file mode 100644 index 000000000..42299fc68 --- /dev/null +++ b/benchmarks/test_suites/test_strncmp.xml @@ -0,0 +1,20 @@ + + BM_string_strncmp + AT_TWOBUF_MANUAL_ALIGN1_0_ALIGN2_0_SIZE_SMALL + + + BM_string_strncmp + AT_TWOBUF_MANUAL_ALIGN1_0_ALIGN2_0_SIZE_MEDIUM + + + BM_string_strncmp + AT_TWOBUF_MANUAL_ALIGN1_4_ALIGN2_0_SIZE_SMALL + + + BM_string_strncmp + AT_TWOBUF_MANUAL_ALIGN1_0_ALIGN2_4_SIZE_SMALL + + + BM_string_strncmp + AT_TWOBUF_MANUAL_ALIGN1_4_ALIGN2_4_SIZE_SMALL +