Navigation


Changeset 572:b1b56d4682d0 in freeDiameter for extensions/test_app/test_app.h


Ignore:
Timestamp:
Oct 8, 2010, 3:30:36 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added benchmark mode in test_app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_app/test_app.h

    r258 r572  
    5252#define MODE_SERV       0x1
    5353#define MODE_CLI        0x2
     54#define MODE_BENCH      0x4
    5455
    5556/* The module configuration */
     
    6465        char    *       user_name;      /* default NULL */
    6566        int             signal;         /* default TEST_APP_DEFAULT_SIGNAL */
     67        struct ta_stats {
     68                unsigned long long      nb_echoed; /* server */
     69                unsigned long long      nb_sent;   /* client */
     70                unsigned long long      nb_recv;   /* client */
     71                unsigned long long      nb_errs;   /* client */
     72                unsigned long           shortest;  /* fastest answer, in microseconds */
     73                unsigned long           longest;   /* slowest answer, in microseconds */
     74                unsigned long           avg;       /* average answer time, in microseconds */
     75        } stats;
     76        pthread_mutex_t         stats_lock;
    6677};
    6778extern struct ta_conf * ta_conf;
     
    7788int ta_cli_init(void);
    7889void ta_cli_fini(void);
     90
     91/* Benchmark flavour */
     92int ta_bench_init(void);
     93void ta_bench_fini(void);
    7994
    8095/* Initialize dictionary definitions */
Note: See TracChangeset for help on using the changeset viewer.