Difference between revisions of "Benchmark Programs"
(updated lmbench instructions) |
|||
Line 22: | Line 22: | ||
# System Call Overhead | # System Call Overhead | ||
− | + | == lmbench == | |
− | + | The LMBench home page is at: http://www.bitmover.com/lmbench/ and/or http://lmbench.sourceforge.net/<br> | |
+ | The sourceforge project page is at: http://sourceforge.net/projects/lmbench | ||
+ | |||
+ | === Instructions for lmbench-3.0-a9 === | ||
+ | |||
+ | (Adjust CC and OS according to your needs.) | ||
− | + | cd lmbench-3.0-a9/src | |
− | + | make CC=arm-linux-gcc OS=arm-linux TARGET=linux | |
− | + | Make the whole lmbench-3.0-a9 directory accessible on the target, | |
− | + | e.g. by copying or NFS mount. Make sure the benchmark scripts | |
− | + | can write the configuration file and results, and also unpack | |
− | + | a tarball used during the benchmark (in case tar is not available | |
− | + | on target): | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | chmod a+w ../bin/arm-linux ../results | |
− | The | + | tar xf webpage-lm.tar |
− | + | ||
+ | To run the benchmark on the target: | ||
+ | |||
+ | cd lmbench-3.0-a9/src | ||
+ | OS=arm-linux ../scripts/config-run | ||
+ | OS=arm-linux ../scripts/results | ||
+ | |||
+ | This worked for me on a target using BusyBox v1.10.2 ash. | ||
+ | |||
+ | The results are written into lmbench-3.0-a9/results/, for each run of the ../scripts/results | ||
+ | a new file is created. You can copy the results back to your PC and run | ||
+ | various kinds of summary postprocessing scripts from lmbench, e.g. | ||
+ | |||
+ | ../scripts/getsummary ../results/arm-linux/* | ||
[[Category:Development Tools]] | [[Category:Development Tools]] |
Revision as of 05:33, 26 August 2010
Here are some different programs for performing benchmarking.
Note: It is important to recognize that benchmarks between systems may be misleading. Benchmarks should primarily be used to determine differences in performance for different software configurations on the same hardware system.
Unix Bench
FYI, the URL to the UnixBench is as follows;
http://www.tux.org/pub/tux/benchmarks/System/unixbench/
UnixBench contains 9 kinds of tests:
- Dhrystone 2 using register variables
- Double-Precision Whetstone
- Execl Throughput
- File Copy
- Pipe Throughput
- Pipe-based Context Switching
- Process Creation
- Shell Script
- System Call Overhead
lmbench
The LMBench home page is at: http://www.bitmover.com/lmbench/ and/or http://lmbench.sourceforge.net/
The sourceforge project page is at: http://sourceforge.net/projects/lmbench
Instructions for lmbench-3.0-a9
(Adjust CC and OS according to your needs.)
cd lmbench-3.0-a9/src make CC=arm-linux-gcc OS=arm-linux TARGET=linux
Make the whole lmbench-3.0-a9 directory accessible on the target, e.g. by copying or NFS mount. Make sure the benchmark scripts can write the configuration file and results, and also unpack a tarball used during the benchmark (in case tar is not available on target):
chmod a+w ../bin/arm-linux ../results tar xf webpage-lm.tar
To run the benchmark on the target:
cd lmbench-3.0-a9/src OS=arm-linux ../scripts/config-run OS=arm-linux ../scripts/results
This worked for me on a target using BusyBox v1.10.2 ash.
The results are written into lmbench-3.0-a9/results/, for each run of the ../scripts/results a new file is created. You can copy the results back to your PC and run various kinds of summary postprocessing scripts from lmbench, e.g.
../scripts/getsummary ../results/arm-linux/*