blob: 5f27d6dceff32987867d9485abe1725836b73324 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $Id$
Description:
This is a simple latency test, single threaded and
multi-threaded clients and servers are included.
= Thread pool test:
The server runs using a thread pool reactor, the client
creates several threads that send requests to the server and record
latency and throughput statistics.
Command line options on the client and server can be used to
control the number of threads in the server and the client, the
amount work performed on each request, the number of requests per
thread, etc.
- Expected output:
The server prints out the IOR of the object it serves. The
client prints the results on a per-thread basis as well as the
aggregated numbers.
- How to run:
You can use the run_test.pl script to run it or:
$ server -ORBSvcConf server.conf -n 2
$ client -ORBSvcConf client.conf -n 4 -i 1000
= Single threaded test:
The server uses a regular (but lock-free) reactor, the client
uses a single thread to issue all the requests; since no extra
threads are created all the locks can be disabled, minimizing
latency.
- Expected output:
As in the multi-threaded test, the client only prints the
results for its single thread.
- How to run:
You can use the run_test.pl script or:
$ st_server -ORBSvcConf st_server.conf
$ st_client -ORBSvcConf st_client.conf -i 1000
|