Repository navigation
Understanding StressTest results
In the CsvGenerationStage executed after StressTestStage RadarGun produces some CSV files with the results. Here we describe the meaning of the columns - some of them may not be present.
Below are the general columns not related to any request type:
- SLAVE_INDEX: the node which produced this row
- ITERATION: In ClientStressTestStage or when using StressTest.statisticsPeriod > 0 the test execution is divided into several iterations
- DURATION: Total amount of nanoseconds all requests took. The stressor threads do only minimal amount of work besides the requests themselves, therefore, this number should be near to the test duration * number of threads.
- FAILURES: Amount of requests that have failed
- THREADS: Amount of stressor threads participating in the test
- REQ_PER_SEC: If the node executed only these requests (including transactions), how many of them would it execute. Computed THREADS * TOTAL_REQUESTS / DURATION (scaled to requests per second).
- REQ_PER_SEC_NET: If the node executed only these requests (and without transactions), how many of them would it execute. This is computed in the same way as REQ_PER_SEC but we don't include the the time spend starting and committing/rolling back transactions into the DURATION part.
There are several requests type that the StressTest may issue depending on the configuration - sometimes the request type includes the result value:
- READ, READ_NULL: Read returning existing value or null, respectively
- WRITE
- REMOVE
- REMOVE_VALID, REMOVE_INVALID: conditional remove which is expected to succeed or fail, respectively
- PUT_IF_ABSENT_IS_ABSENT, PUT_IF_ABSENT_NOT_ABSENT
- REPLACE_VALID, REPLACE_INVALID: conditional remove which is expected to succeed or fail, respectively
- GET_ALL: native implementation of bulk read
- GET_ALL_VIA_ASYNC: bulk read implemented by several asynchronous requests
- PUT_ALL: native implementation of bulk write
- PUT_ALL_VIA_ASYNC: bulk write implemented by several asynchronous requests
- REMOVE_ALL: native implementation of bulk remove
- REMOVE_ALL_VIA_ASYNC: bulk remove implemented by several asynchronous requests
- QUERY
- TRANSACTION: this "request type" gathers all the time spent starting and committing/rolling back transactions
For each request type there are several values:
- _REQUEST__COUNT: total number of requests
- _REQUEST__ERRORS: number of failed requests
- _REQUEST__DURATION_NET: time spent executing the requests themselves, without transactional overhead, in nanoseconds
- _REQUEST__TX_OVERHEAD: time spent starting and ending transactions, in nanoseconds.
- _REQUEST_S_PER_SEC: THREADS * _REQUEST__COUNT / _REQUEST__DURATION_TX (scaled to requests per second). This value is imprecise for transactions which include multiple requests because currently the transactional overhead is added only to the last request in the transaction.
- _REQUEST_S_PER_SEC_NET: THREADS * _REQUEST__COUNT / _REQUEST__DURATION_NET (scaled to requests per second)
- _REQUEST__MEAN_NET/_REQUEST__AVG_NET: Average request duration in nanoseconds
- _REQUEST__MEAN_TX/_REQUEST__AVG_TX: Average request + transaction duration in nanoseconds
- _REQUEST__M2_NET/_REQUEST__M2_TX: sum of (x - mean)^2. Standard error is sqrt(M2/(COUNT - 1)). Used in further statistics aggregation.
- WRITE takes 10 ms
Result: WRITES_PER_SEC_NET=100, WRITES_PER_SEC=100
- START_TX takes 1 ms
- WRITE takes 2 ms
- COMMIT_TX takes 7 ms
Result: WRITES_PER_SEC_NET=500, WRITES_PER_SEC=100 (the whole sequence took 10 ms), TRANSACTIONS_PER_SEC=100
- START_TX takes 1 ms
- READ takes 5 ms
- WRITE takes 2 ms
- COMMIT_TX takes 17 ms
Here it is a bit more complicated. It's unclear how the transaction overhead should be accounted to the two requests - therefore, the last command in the transaction is chosen. Result: READS_PER_SEC_NET=200, READS_PER_SEC=200, WRITES_PER_SEC_NET=500, WRITES_PER_SEC=50, TRANSACTIONS_PER_SEC=40
In standard stress test with multiple requests per transaction the requests are generated in random order, therefore, the _REQUEST_S_PER_SEC would differ from _REQUEST_S_PER_SEC_NET for all request types. This may be unfair for some requests, e.g. the READ may not alter the commit processing in any way but still, in some percentage of cases the transaction overhead will be accounted to the READs. Therefore, you should rather consider the TRANSACTIONS_PER_SEC as the only meaningful result, or the _REQUEST_S_PER_SEC_NET values.