/* Benchmark malloc and free functions.
- Copyright (C) 2013-2015 Free Software Foundation, Inc.
+ Copyright (C) 2013-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
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
#include <errno.h>
#include <math.h>
#include "json-lib.h"
/* Benchmark duration in seconds. */
-#define BENCHMARK_DURATION 60
+#define BENCHMARK_DURATION 10
#define RAND_SEED 88
#ifndef NUM_THREADS
{
timing_t cur;
size_t iters = 0, num_threads = 1;
- unsigned long res;
json_ctx_t json_ctx;
double d_total_s, d_total_i;
struct sigaction act;
json_attr_object_begin (&json_ctx, "");
- TIMING_INIT (res);
-
- (void) res;
-
memset (&act, 0, sizeof (act));
act.sa_handler = &alarm_handler;