Aarav90-cpu dc0d1c50f0 Initial Commit 16 часов назад
..
libmvec dc0d1c50f0 Initial Commit 16 часов назад
scripts dc0d1c50f0 Initial Commit 16 часов назад
strcoll-inputs dc0d1c50f0 Initial Commit 16 часов назад
Makefile dc0d1c50f0 Initial Commit 16 часов назад
README dc0d1c50f0 Initial Commit 16 часов назад
acos-inputs dc0d1c50f0 Initial Commit 16 часов назад
acosf-inputs dc0d1c50f0 Initial Commit 16 часов назад
acosh-inputs dc0d1c50f0 Initial Commit 16 часов назад
acoshf-inputs dc0d1c50f0 Initial Commit 16 часов назад
acospi-inputs dc0d1c50f0 Initial Commit 16 часов назад
acospif-inputs dc0d1c50f0 Initial Commit 16 часов назад
asin-inputs dc0d1c50f0 Initial Commit 16 часов назад
asinf-inputs dc0d1c50f0 Initial Commit 16 часов назад
asinh-inputs dc0d1c50f0 Initial Commit 16 часов назад
asinhf-inputs dc0d1c50f0 Initial Commit 16 часов назад
asinpi-inputs dc0d1c50f0 Initial Commit 16 часов назад
asinpif-inputs dc0d1c50f0 Initial Commit 16 часов назад
atan-inputs dc0d1c50f0 Initial Commit 16 часов назад
atan2-inputs dc0d1c50f0 Initial Commit 16 часов назад
atan2f-inputs dc0d1c50f0 Initial Commit 16 часов назад
atan2pi-inputs dc0d1c50f0 Initial Commit 16 часов назад
atan2pif-inputs dc0d1c50f0 Initial Commit 16 часов назад
atanf-inputs dc0d1c50f0 Initial Commit 16 часов назад
atanh-inputs dc0d1c50f0 Initial Commit 16 часов назад
atanhf-inputs dc0d1c50f0 Initial Commit 16 часов назад
atanpi-inputs dc0d1c50f0 Initial Commit 16 часов назад
atanpif-inputs dc0d1c50f0 Initial Commit 16 часов назад
bench-arc4random.c dc0d1c50f0 Initial Commit 16 часов назад
bench-bsearch.c dc0d1c50f0 Initial Commit 16 часов назад
bench-bzero-large.c dc0d1c50f0 Initial Commit 16 часов назад
bench-bzero.c dc0d1c50f0 Initial Commit 16 часов назад
bench-calloc-simple.c dc0d1c50f0 Initial Commit 16 часов назад
bench-calloc-tcache.c dc0d1c50f0 Initial Commit 16 часов назад
bench-calloc-thread.c dc0d1c50f0 Initial Commit 16 часов назад
bench-dl-elf-hash.c dc0d1c50f0 Initial Commit 16 часов назад
bench-dl-new-hash.c dc0d1c50f0 Initial Commit 16 часов назад
bench-fclose.c dc0d1c50f0 Initial Commit 16 часов назад
bench-hash-funcs-kernel.h dc0d1c50f0 Initial Commit 16 часов назад
bench-hash-funcs.c dc0d1c50f0 Initial Commit 16 часов назад
bench-libmvec-skeleton.c dc0d1c50f0 Initial Commit 16 часов назад
bench-malloc-simple.c dc0d1c50f0 Initial Commit 16 часов назад
bench-malloc-tcache.c dc0d1c50f0 Initial Commit 16 часов назад
bench-malloc-thread.c dc0d1c50f0 Initial Commit 16 часов назад
bench-math-inlines.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memccpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memchr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memcmp.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memcmpeq.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memcpy-large.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memcpy-random.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memcpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memmem.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memmove-large.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memmove.c dc0d1c50f0 Initial Commit 16 часов назад
bench-mempcpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memrchr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memset-large.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memset-random.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memset-zero-large.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memset-zero.c dc0d1c50f0 Initial Commit 16 часов назад
bench-memset.c dc0d1c50f0 Initial Commit 16 часов назад
bench-nss-hash.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-lock-base.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-locks.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-mutex-lock.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-mutex-trylock-base.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-mutex-trylock-recursive-throughput.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-mutex-trylock-throughput.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-mutex-trylock.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-spin-lock.c dc0d1c50f0 Initial Commit 16 часов назад
bench-pthread-spin-trylock.c dc0d1c50f0 Initial Commit 16 часов назад
bench-random-lock.c dc0d1c50f0 Initial Commit 16 часов назад
bench-rawmemchr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-skeleton.c dc0d1c50f0 Initial Commit 16 часов назад
bench-stpcpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-stpcpy_chk.c dc0d1c50f0 Initial Commit 16 часов назад
bench-stpncpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strcasecmp.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strcasestr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strcat.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strchr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strchrnul.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strcmp.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strcoll.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strcpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strcpy_chk.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strcspn.c dc0d1c50f0 Initial Commit 16 часов назад
bench-string.h dc0d1c50f0 Initial Commit 16 часов назад
bench-strlen-random.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strlen.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strncasecmp.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strncat.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strncmp.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strncpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strnlen.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strpbrk.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strrchr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strsep.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strspn.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strstr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strtod.c dc0d1c50f0 Initial Commit 16 часов назад
bench-strtok.c dc0d1c50f0 Initial Commit 16 часов назад
bench-timing-type.c dc0d1c50f0 Initial Commit 16 часов назад
bench-timing.h dc0d1c50f0 Initial Commit 16 часов назад
bench-util.c dc0d1c50f0 Initial Commit 16 часов назад
bench-util.h dc0d1c50f0 Initial Commit 16 часов назад
bench-wcpcpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcpncpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcrtomb.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcscat.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcschr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcschrnul.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcscmp.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcscpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcscspn.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcslen.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcsncat.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcsncmp.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcsncpy.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcsnlen.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcspbrk.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcsrchr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wcsspn.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wmemchr.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wmemcmp.c dc0d1c50f0 Initial Commit 16 часов назад
bench-wmemset.c dc0d1c50f0 Initial Commit 16 часов назад
cbrt-inputs dc0d1c50f0 Initial Commit 16 часов назад
cbrtf-inputs dc0d1c50f0 Initial Commit 16 часов назад
cbrtl-inputs dc0d1c50f0 Initial Commit 16 часов назад
ceil-inputs dc0d1c50f0 Initial Commit 16 часов назад
ceilf-inputs dc0d1c50f0 Initial Commit 16 часов назад
cos-inputs dc0d1c50f0 Initial Commit 16 часов назад
cosf-inputs dc0d1c50f0 Initial Commit 16 часов назад
cosh-inputs dc0d1c50f0 Initial Commit 16 часов назад
coshf-inputs dc0d1c50f0 Initial Commit 16 часов назад
cospi-inputs dc0d1c50f0 Initial Commit 16 часов назад
cospif-inputs dc0d1c50f0 Initial Commit 16 часов назад
erf-inputs dc0d1c50f0 Initial Commit 16 часов назад
erfc-inputs dc0d1c50f0 Initial Commit 16 часов назад
erfcf-inputs dc0d1c50f0 Initial Commit 16 часов назад
erff-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp10-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp10f-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp10m1-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp10m1f-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp2-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp2f-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp2m1-inputs dc0d1c50f0 Initial Commit 16 часов назад
exp2m1f-inputs dc0d1c50f0 Initial Commit 16 часов назад
expf-inputs dc0d1c50f0 Initial Commit 16 часов назад
expf128-inputs dc0d1c50f0 Initial Commit 16 часов назад
expl-inputs dc0d1c50f0 Initial Commit 16 часов назад
expm1-inputs dc0d1c50f0 Initial Commit 16 часов назад
expm1f-inputs dc0d1c50f0 Initial Commit 16 часов назад
ffs-inputs dc0d1c50f0 Initial Commit 16 часов назад
ffsll-inputs dc0d1c50f0 Initial Commit 16 часов назад
floor-inputs dc0d1c50f0 Initial Commit 16 часов назад
floorf-inputs dc0d1c50f0 Initial Commit 16 часов назад
fma-inputs dc0d1c50f0 Initial Commit 16 часов назад
fmaf-inputs dc0d1c50f0 Initial Commit 16 часов назад
fmal-inputs dc0d1c50f0 Initial Commit 16 часов назад
fmax-inputs dc0d1c50f0 Initial Commit 16 часов назад
fmaxf-inputs dc0d1c50f0 Initial Commit 16 часов назад
fmin-inputs dc0d1c50f0 Initial Commit 16 часов назад
fminf-inputs dc0d1c50f0 Initial Commit 16 часов назад
fmod-inputs dc0d1c50f0 Initial Commit 16 часов назад
fmodf-inputs dc0d1c50f0 Initial Commit 16 часов назад
frexp-inputs dc0d1c50f0 Initial Commit 16 часов назад
frexpf-inputs dc0d1c50f0 Initial Commit 16 часов назад
frexpl-inputs dc0d1c50f0 Initial Commit 16 часов назад
hypot-inputs dc0d1c50f0 Initial Commit 16 часов назад
hypotf-inputs dc0d1c50f0 Initial Commit 16 часов назад
ilogb-inputs dc0d1c50f0 Initial Commit 16 часов назад
ilogbf-inputs dc0d1c50f0 Initial Commit 16 часов назад
ilogbf128-inputs dc0d1c50f0 Initial Commit 16 часов назад
inet_ntop_ipv4-inputs dc0d1c50f0 Initial Commit 16 часов назад
inet_ntop_ipv4-source.c dc0d1c50f0 Initial Commit 16 часов назад
inet_ntop_ipv6-inputs dc0d1c50f0 Initial Commit 16 часов назад
inet_ntop_ipv6-source.c dc0d1c50f0 Initial Commit 16 часов назад
isfinite-inputs dc0d1c50f0 Initial Commit 16 часов назад
isinf-inputs dc0d1c50f0 Initial Commit 16 часов назад
isnan-inputs dc0d1c50f0 Initial Commit 16 часов назад
j0-inputs dc0d1c50f0 Initial Commit 16 часов назад
j1-inputs dc0d1c50f0 Initial Commit 16 часов назад
json-lib.c dc0d1c50f0 Initial Commit 16 часов назад
json-lib.h dc0d1c50f0 Initial Commit 16 часов назад
lgamma-inputs dc0d1c50f0 Initial Commit 16 часов назад
lgammaf-inputs dc0d1c50f0 Initial Commit 16 часов назад
lgammaf_r-inputs dc0d1c50f0 Initial Commit 16 часов назад
llrint-inputs dc0d1c50f0 Initial Commit 16 часов назад
llrintf-inputs dc0d1c50f0 Initial Commit 16 часов назад
log-inputs dc0d1c50f0 Initial Commit 16 часов назад
log10-inputs dc0d1c50f0 Initial Commit 16 часов назад
log10f-inputs dc0d1c50f0 Initial Commit 16 часов назад
log10p1-inputs dc0d1c50f0 Initial Commit 16 часов назад
log10p1f-inputs dc0d1c50f0 Initial Commit 16 часов назад
log1p-inputs dc0d1c50f0 Initial Commit 16 часов назад
log1pf-inputs dc0d1c50f0 Initial Commit 16 часов назад
log2-inputs dc0d1c50f0 Initial Commit 16 часов назад
log2f-inputs dc0d1c50f0 Initial Commit 16 часов назад
log2l-inputs dc0d1c50f0 Initial Commit 16 часов назад
log2p1-inputs dc0d1c50f0 Initial Commit 16 часов назад
log2p1f-inputs dc0d1c50f0 Initial Commit 16 часов назад
logb-inputs dc0d1c50f0 Initial Commit 16 часов назад
logbf-inputs dc0d1c50f0 Initial Commit 16 часов назад
logf-inputs dc0d1c50f0 Initial Commit 16 часов назад
lrint-inputs dc0d1c50f0 Initial Commit 16 часов назад
lrintf-inputs dc0d1c50f0 Initial Commit 16 часов назад
modf-inputs dc0d1c50f0 Initial Commit 16 часов назад
modff-inputs dc0d1c50f0 Initial Commit 16 часов назад
nearbyint-inputs dc0d1c50f0 Initial Commit 16 часов назад
nearbyintf-inputs dc0d1c50f0 Initial Commit 16 часов назад
pow-inputs dc0d1c50f0 Initial Commit 16 часов назад
powf-inputs dc0d1c50f0 Initial Commit 16 часов назад
powf128-inputs dc0d1c50f0 Initial Commit 16 часов назад
powl-inputs dc0d1c50f0 Initial Commit 16 часов назад
pthread_once-inputs dc0d1c50f0 Initial Commit 16 часов назад
pthread_once-source.c dc0d1c50f0 Initial Commit 16 часов назад
remainder-inputs dc0d1c50f0 Initial Commit 16 часов назад
remainderf-inputs dc0d1c50f0 Initial Commit 16 часов назад
rint-inputs dc0d1c50f0 Initial Commit 16 часов назад
rintf-inputs dc0d1c50f0 Initial Commit 16 часов назад
roundeven-inputs dc0d1c50f0 Initial Commit 16 часов назад
roundevenf-inputs dc0d1c50f0 Initial Commit 16 часов назад
rsqrt-inputs dc0d1c50f0 Initial Commit 16 часов назад
rsqrtf-inputs dc0d1c50f0 Initial Commit 16 часов назад
sin-inputs dc0d1c50f0 Initial Commit 16 часов назад
sincos-inputs dc0d1c50f0 Initial Commit 16 часов назад
sincosf-inputs dc0d1c50f0 Initial Commit 16 часов назад
sinf-inputs dc0d1c50f0 Initial Commit 16 часов назад
sinf128-inputs dc0d1c50f0 Initial Commit 16 часов назад
sinh-inputs dc0d1c50f0 Initial Commit 16 часов назад
sinhf-inputs dc0d1c50f0 Initial Commit 16 часов назад
sinpi-inputs dc0d1c50f0 Initial Commit 16 часов назад
sinpif-inputs dc0d1c50f0 Initial Commit 16 часов назад
sprintf-inputs dc0d1c50f0 Initial Commit 16 часов назад
sprintf-source.c dc0d1c50f0 Initial Commit 16 часов назад
sqrt-inputs dc0d1c50f0 Initial Commit 16 часов назад
tan-inputs dc0d1c50f0 Initial Commit 16 часов назад
tanf-inputs dc0d1c50f0 Initial Commit 16 часов назад
tanh-inputs dc0d1c50f0 Initial Commit 16 часов назад
tanhf-inputs dc0d1c50f0 Initial Commit 16 часов назад
tanpi-inputs dc0d1c50f0 Initial Commit 16 часов назад
tanpif-inputs dc0d1c50f0 Initial Commit 16 часов назад
tgamma-inputs dc0d1c50f0 Initial Commit 16 часов назад
tgammaf-inputs dc0d1c50f0 Initial Commit 16 часов назад
thread_create-inputs dc0d1c50f0 Initial Commit 16 часов назад
thread_create-source.c dc0d1c50f0 Initial Commit 16 часов назад
trunc-inputs dc0d1c50f0 Initial Commit 16 часов назад
truncf-inputs dc0d1c50f0 Initial Commit 16 часов назад
y0-inputs dc0d1c50f0 Initial Commit 16 часов назад
y1-inputs dc0d1c50f0 Initial Commit 16 часов назад

README

Using the glibc microbenchmark suite
====================================

The glibc microbenchmark suite automatically generates code for specified
functions, builds and calls them repeatedly for given inputs to give some
basic performance properties of the function.

Running the benchmark:
=====================

The benchmark needs python 2.7 or later in addition to the
dependencies required to build the GNU C Library. One may run the
benchmark by invoking make as follows:

$ make bench

This runs each function for 10 seconds and appends its output to
benchtests/bench.out. To ensure that the tests are rebuilt, one could run:

$ make bench-clean

The duration of each test can be configured setting the BENCH_DURATION variable
in the call to make. One should run `make bench-clean' before changing
BENCH_DURATION.

$ make BENCH_DURATION=1 bench

The benchmark suite does function call measurements using architecture-specific
high precision timing instructions whenever available. When such support is
not available, it uses clock_gettime (CLOCK_MONOTONIC). One can force the
benchmark to use clock_gettime by invoking make as follows:

$ make USE_CLOCK_GETTIME=1 bench

Again, one must run `make bench-clean' before changing the measurement method.

On x86 processors, RDTSCP instruction provides more precise timing data
than RDTSC instruction. All x86 processors since 2010 support RDTSCP
instruction. One can force the benchmark to use RDTSCP by invoking make
as follows:

$ make USE_RDTSCP=1 bench

One must run `make bench-clean' before changing the measurement method.

Running benchmarks on another target:
====================================

If the target where you want to run benchmarks is not capable of building the
code or you're cross-building, you could build and execute the benchmark in
separate steps. On the build system run:

$ make bench-build

and then copy the source and build directories to the target and run the
benchmarks from the build directory as usual:

$ make bench

make sure the copy preserves timestamps by using either rsync or scp -p
otherwise the above command may try to build the benchmark again. Benchmarks
that require generated code to be executed during the build are skipped when
cross-building.

Building benchmarks as static executables:
=========================================

To build benchmarks as static executables, on the build system, run:

$ make STATIC-BENCHTESTS=yes bench-build

You can copy benchmark executables to another machine and run them
without copying the source nor build directories.

Running subsets of benchmarks:
==============================

To run only a subset of benchmarks, one may invoke make as follows

$ make bench BENCHSET="bench-pthread bench-math malloc-thread"

where BENCHSET may be a space-separated list of the following values:

bench-math
bench-pthread
bench-string
hash-benchset
malloc-thread
math-benchset
stdio-benchset
stdio-common-benchset
stdlib-benchset
string-benchset
wcsmbs-benchset

Adding a function to benchtests:
===============================

If the name of the function is `foo', then the following procedure should allow
one to add `foo' to the bench tests:

- Append the function name to the bench variable in the Makefile.

- Make a file called `foo-inputs` to provide the definition and input for the
function. The file should have some directives telling the parser script
about the function and then one input per line. Directives are lines that
have a special meaning for the parser and they begin with two hashes '##'.
The following directives are recognized:

- args: This should be assigned a colon separated list of types of the input
arguments. This directive may be skipped if the function does not take any
inputs. One may identify output arguments by nesting them in <>. The
generator will create variables to get outputs from the calling function.
- ret: This should be assigned the type that the function returns. This
directive may be skipped if the function does not return a value.
- includes: This should be assigned a comma-separated list of headers that
need to be included to provide declarations for the function and types it
may need (specifically, this includes using "#include ").
- include-sources: This should be assigned a comma-separated list of source
files that need to be included to provide definitions of global variables
and functions (specifically, this includes using "#include "source").
See pthread_once-inputs and pthreads_once-source.c for an example of how
to use this to benchmark a function that needs state across several calls.
- init: Name of an initializer function to call to initialize the benchtest.
- name: See following section for instructions on how to use this directive.

Lines beginning with a single hash '#' are treated as comments. See
pow-inputs for an example of an input file.

Multiple execution units per function:
=====================================

Some functions have distinct performance characteristics for different input
domains and it may be necessary to measure those separately. For example, some
math functions perform computations at different levels of precision (64-bit vs
240-bit vs 768-bit) and mixing them does not give a very useful picture of the
performance of these functions. One could separate inputs for these domains in
the same file by using the `name' directive that looks something like this:

##name: 240bits

All inputs after the ##name: 240bits directive and until the next `name'
directive (or the end of file) are part of the "240bits" benchmark and
will be output separately in benchtests/bench.out. See the pow-inputs file
for an example of what such a partitioned input file would look like.

It is also possible to measure latency and reciprocal throughput of a
(partial) trace extracted from a real workload. In this case the whole trace
is iterated over multiple times rather than repeating every input multiple
times. This can be done via:

##name: workload-

where is simply used to distinguish between different traces in the
same file. To create such a trace, you can simply extract using printf()
values uses for a specific application, or generate random values in some
interval. See the expf-inputs file for an example of this workload mechanism.

Benchmark Sets:
==============

In addition to standard benchmarking of functions, one may also generate
custom outputs for a set of functions. This is currently used by string
function benchmarks where the aim is to compare performance between
implementations at various alignments and for various sizes.

To add a benchset for `foo':

- Add `foo' to the benchset variable.
- Write your bench-foo.c that prints out the measurements to stdout.
- On execution, a bench-foo.out is created in $(objpfx) with the contents of
stdout.

Reading String Benchmark Results:
================================

Some of the string benchmark results are now in JSON to make it easier to read
in scripts. Use the benchtests/compare_strings.py script to show the results
in a tabular format, generate graphs and more. Run

benchtests/scripts/compare_strings.py -h

for usage information.