xref: /aosp_15_r20/external/ltp/utils/benchmark/ebizzy-0.3/README (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Workerebizzy
2*49cdfc7eSAndroid Build Coastguard Worker------
3*49cdfc7eSAndroid Build Coastguard Worker
4*49cdfc7eSAndroid Build Coastguard Workerebizzy is designed to generate a workload resembling common web
5*49cdfc7eSAndroid Build Coastguard Workerapplication server workloads.  It is highly threaded, has a large
6*49cdfc7eSAndroid Build Coastguard Workerin-memory working set with low locality, and allocates and deallocates
7*49cdfc7eSAndroid Build Coastguard Workermemory frequently.  When running most efficiently, it will max out the
8*49cdfc7eSAndroid Build Coastguard WorkerCPU.
9*49cdfc7eSAndroid Build Coastguard Worker
10*49cdfc7eSAndroid Build Coastguard WorkerCompiling
11*49cdfc7eSAndroid Build Coastguard Worker---------
12*49cdfc7eSAndroid Build Coastguard Worker
13*49cdfc7eSAndroid Build Coastguard WorkerFirst configure ebizzy for your platform by typing "./configure".
14*49cdfc7eSAndroid Build Coastguard WorkerCurrently Linux and Solaris anre supported.  Then type "make".  The
15*49cdfc7eSAndroid Build Coastguard Workerresulting binary will be named "ebizzy".
16*49cdfc7eSAndroid Build Coastguard Worker
17*49cdfc7eSAndroid Build Coastguard WorkerRunning
18*49cdfc7eSAndroid Build Coastguard Worker-------
19*49cdfc7eSAndroid Build Coastguard Worker
20*49cdfc7eSAndroid Build Coastguard Workerebizzy does not require any command line arguments.  To get
21*49cdfc7eSAndroid Build Coastguard Workerresults, just run it:
22*49cdfc7eSAndroid Build Coastguard Worker
23*49cdfc7eSAndroid Build Coastguard Worker$ ./ebizzy
24*49cdfc7eSAndroid Build Coastguard Worker2569 records/s
25*49cdfc7eSAndroid Build Coastguard Workerreal 10.00 s
26*49cdfc7eSAndroid Build Coastguard Workeruser  2.74 s
27*49cdfc7eSAndroid Build Coastguard Workersys   7.24 s
28*49cdfc7eSAndroid Build Coastguard Worker
29*49cdfc7eSAndroid Build Coastguard WorkerThe records per second rate should be as high as possible, and the
30*49cdfc7eSAndroid Build Coastguard Workersystem time as low as possible.  Play with the various options to try
31*49cdfc7eSAndroid Build Coastguard Workerto increase this time to see where overhead is coming from.  Note that
32*49cdfc7eSAndroid Build Coastguard Workerthe default number of threads is 2 per number of cpus.
33*49cdfc7eSAndroid Build Coastguard Worker
34*49cdfc7eSAndroid Build Coastguard WorkerAn interesting part of this app is difference between memory
35*49cdfc7eSAndroid Build Coastguard Workerallocation using the "always mmap" and "never mmap" flags.  -m is
36*49cdfc7eSAndroid Build Coastguard Worker"always mmap" and -M is "never mmap":
37*49cdfc7eSAndroid Build Coastguard Worker
38*49cdfc7eSAndroid Build Coastguard Worker$ ./ebizzy -M
39*49cdfc7eSAndroid Build Coastguard Worker3997 records/s
40*49cdfc7eSAndroid Build Coastguard Workerreal 10.00 s
41*49cdfc7eSAndroid Build Coastguard Workeruser  3.70 s
42*49cdfc7eSAndroid Build Coastguard Workersys   5.65 s
43*49cdfc7eSAndroid Build Coastguard Worker$ ./ebizzy -m
44*49cdfc7eSAndroid Build Coastguard Worker2577 records/s
45*49cdfc7eSAndroid Build Coastguard Workerreal 10.00 s
46*49cdfc7eSAndroid Build Coastguard Workeruser  2.40 s
47*49cdfc7eSAndroid Build Coastguard Workersys   7.43 s
48*49cdfc7eSAndroid Build Coastguard Worker
49*49cdfc7eSAndroid Build Coastguard WorkerThe output of the above two commands should be quite different.
50*49cdfc7eSAndroid Build Coastguard Worker
51*49cdfc7eSAndroid Build Coastguard Workerebizzy has many command line arguments.  To get a list of them and
52*49cdfc7eSAndroid Build Coastguard Workertheir descriptions, type:
53*49cdfc7eSAndroid Build Coastguard Worker
54*49cdfc7eSAndroid Build Coastguard Worker$ ./ebizzy -?
55*49cdfc7eSAndroid Build Coastguard Worker
56*49cdfc7eSAndroid Build Coastguard WorkerSupport
57*49cdfc7eSAndroid Build Coastguard Worker-------
58*49cdfc7eSAndroid Build Coastguard Worker
59*49cdfc7eSAndroid Build Coastguard WorkerThere is none.  However, you can try emailing the author with
60*49cdfc7eSAndroid Build Coastguard Workerquestions and suggestions.
61*49cdfc7eSAndroid Build Coastguard Worker
62*49cdfc7eSAndroid Build Coastguard WorkerVal Henson <[email protected]>
63