#include "gnunet_program_lib.h"
#include "gnunet_time_lib.h"
#include "peerinfo.h"
+#include <gauger.h>
#define START_SERVICE 1
static void
process (void *cls,
const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_HELLO_Message *hello)
+ const struct GNUNET_HELLO_Message *hello,
+ const char * err_msg)
{
if (peer == NULL)
{
check ()
{
int ok = 0;
- char *const argv[] = { "test-peerinfo-hammer",
+ char *const argv[] = { "perf-peerinfo-api",
"-c",
"test_peerinfo_api_data.conf",
#if DEBUG_PEERINFO
"-L", "DEBUG",
+#else
+ "-L", "ERROR",
#endif
NULL
};
"gnunet-service-peerinfo",
#if DEBUG_PEERINFO
"-L", "DEBUG",
+#else
+ "-L", "ERROR",
#endif
"-c", "test_peerinfo_api_data.conf", NULL);
#endif
+ GNUNET_assert (NULL != proc);
GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
argv, "perf-peerinfo-api", "nohelp",
options, &run, &ok);
"Received %u/%u calls before timeout\n",
numpeers,
NUM_REQUESTS * NUM_REQUESTS / 2);
+ GAUGER ("PEERINFO", "Peerinfo lookups", numpeers / 30, "peers/s");
#if START_SERVICE
if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
{