The usage is pretty simple:
./benchmark.sh <path to luxconsole> <path to testscene lxs>
You can also specify the number of passes and pass length:
./benchmark.sh <luxconsole> <testscene lxs> [time] [passes]
It defaults to 5 passes and 5 minutes (300 secs) per pass.
For example:
- Code: Select all
$ ./benchmark.sh ./luxconsole examples/LuxTime_by_freejack/luxtime.lxs
Total passes: 5 per 90 seconds each
With normalization
Running pass 1 for 90 seconds...
Pass 1 result: 100.57 kS/s
Running pass 2 for 90 seconds...
./benchmark.sh: line 49: 5913 Terminated $LUX "$2" 2> $OUTPUT
Pass 2 result: 99.19 kS/s
Running pass 3 for 90 seconds...
./benchmark.sh: line 49: 5961 Terminated $LUX "$2" 2> $OUTPUT
Pass 3 result: 99.68 kS/s
Running pass 4 for 90 seconds...
./benchmark.sh: line 49: 6008 Terminated $LUX "$2" 2> $OUTPUT
Pass 4 result: 100.32 kS/s
Running pass 5 for 90 seconds...
./benchmark.sh: line 49: 6113 Terminated $LUX "$2" 2> $OUTPUT
Pass 5 result: 99.24 kS/s
Passes results: 99.19 99.24 99.68 100.32 100.57
./benchmark.sh: line 74: 6411 Terminated $LUX "$2" 2> $OUTPUT
Average result: 99.746
By the way, if anybody knows how to get rid of those "Terminated" lines, i'll be glad to know.
