Improve bench-strlen
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 27 Dec 2018 14:56:23 +0000 (14:56 +0000)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 27 Dec 2018 14:56:23 +0000 (14:56 +0000)
commit5289f1f56b7174da6b036d24a7626d9cd658fb01
tree4d91f4f0319dba42323b1dbe1b9a241aa871c47e
parentba4b8fab20d52e4c3c52fcff805c77219a9e8b5e
Improve bench-strlen

The current bench-strlen compares against a slow byte-oriented strlen which
is not useful given it's too easy to beat.  Remove it and compare against the
generic C strlen version and memchr.

* benchtests/bench-strlen.c (generic_strlen): New function.
(memchr_strlen): New function.
ChangeLog
benchtests/bench-strlen.c