/* Measure memset functions with large data sizes.
- Copyright (C) 2016-2017 Free Software Foundation, Inc.
+ Copyright (C) 2016-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
#include "bench-string.h"
#ifndef WIDE
-# define MEMSET memset
-# define CHAR char
# define SIMPLE_MEMSET simple_memset
-# define MEMCMP memcmp
#else
-# include <wchar.h>
-# define MEMSET wmemset
-# define CHAR wchar_t
# define SIMPLE_MEMSET simple_wmemset
-# define MEMCMP wmemcmp
#endif /* WIDE */
#include <assert.h>
json_array_begin (json_ctx, "timings");
FOR_EACH_IMPL (impl, 0)
- do_one_test (json_ctx, impl, (CHAR *) (buf1) + align, c, len);
+ {
+ do_one_test (json_ctx, impl, (CHAR *) (buf1) + align, c, len);
+ alloc_bufs ();
+ }
json_array_end (json_ctx);
json_element_object_end (json_ctx);