Skip to content

Commit a97aebb

Browse files
committed
add comments
1 parent 948922e commit a97aebb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/de/rwth/idsg/steve/StressTestSoapOCPP16.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,17 @@
4242
*/
4343
public class StressTestSoapOCPP16 {
4444

45+
// higher values -> more stress
46+
//
4547
private static final int THREAD_COUNT = 50;
4648
private static final int REPEAT_COUNT_PER_THREAD = 50;
4749

50+
// lower values -> more stress
51+
//
52+
// reason: these only specify the size of the values "bag" from which a test picks a value randomly. if there is
53+
// less values to pick from, it is more likely that tests will use the same value at the same time. this produces
54+
// more overhead for steve (especially db) when multiple threads "fight" for inserting/updating a db row/cell.
55+
//
4856
private static final int ID_TAG_COUNT = 50;
4957
private static final int CHARGE_BOX_COUNT = 100;
5058
private static final int CONNECTOR_COUNT_PER_CHARGE_BOX = 25;

0 commit comments

Comments
 (0)