-/*
- * $Id: zoom-benchmark.c,v 1.19 2007-05-06 20:12:21 adam Exp $
- *
- * Asynchronous multi-target client doing search and piggyback retrieval
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) Index Data
+ * See the file LICENSE for details.
void print_event_line(struct event_line_t *pel)
{
printf ("%d\t%ld.%06ld\t%d\t%d\t%s\t%d\t%s\n",
void print_event_line(struct event_line_t *pel)
{
printf ("%d\t%ld.%06ld\t%d\t%d\t%s\t%d\t%s\n",
- pel->connection, pel->time_sec, pel->time_usec,
+ pel->connection, pel->time_sec, pel->time_usec,
char *arg;
int ret;
while ((ret = options("h:q:c:t:p:bgn:", argv, argc, &arg)) != -2)
char *arg;
int ret;
while ((ret = options("h:q:c:t:p:bgn:", argv, argc, &arg)) != -2)
if(0){
printf("zoom-benchmark\n");
printf(" host: %s \n", p_parameters->host);
if(0){
printf("zoom-benchmark\n");
printf(" host: %s \n", p_parameters->host);
z = (ZOOM_connection *) xmalloc(sizeof(*z) * parameters.concurrent);
r = (ZOOM_resultset *) xmalloc(sizeof(*r) * parameters.concurrent);
elc = (int *) xmalloc(sizeof(*elc) * parameters.concurrent * parameters.repeat);
z = (ZOOM_connection *) xmalloc(sizeof(*z) * parameters.concurrent);
r = (ZOOM_resultset *) xmalloc(sizeof(*r) * parameters.concurrent);
elc = (int *) xmalloc(sizeof(*elc) * parameters.concurrent * parameters.repeat);
ZOOM_options_set (o, "preferredRecordSyntax", "usmarc");
ZOOM_options_set (o, "elementSetName", "F");
}
ZOOM_options_set (o, "preferredRecordSyntax", "usmarc");
ZOOM_options_set (o, "elementSetName", "F");
}
r[i] = ZOOM_connection_search_pqf (z[i], parameters.query);
/* network I/O. pass number of connections and array of connections */
r[i] = ZOOM_connection_search_pqf (z[i], parameters.query);
/* network I/O. pass number of connections and array of connections */