You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
load generators have a gazillion ways to pass data into the code that's being load tested.
Data from .csv files, random number generators, sequences of numbers, the list goes on.
But snail4j can't do this yet. See how I've added parameters to the method names in the below screenshots? That's my ugly shortcut for now.
For example, consider this text from the screenshot: "simulateSynchronizedSlowCode_sleepMilliseconds_1000". Not too tough to imagine that the source has a hard coded parameter of 1000.
Instead this hard coding, the dream is to pass parameters from the snail4j GUI directly into the method parameters of a method annotated with @com.github.eostermueller.snail4j.Load.
As an aside, the classes and method names in this screenshot got there because I added a special method-level annotation to the code I wanted to load. Snail4j uses ClassGraph to query for all classes with that annotation.
Then, snail4j instantiates the annotated class using (logically) prototype scope.
Plain reflection is used to invoke the method using this code, and the parameters from the Snail4j GUI would be specified there.
The text was updated successfully, but these errors were encountered:
load generators have a gazillion ways to pass data into the code that's being load tested.
Data from .csv files, random number generators, sequences of numbers, the list goes on.
But snail4j can't do this yet. See how I've added parameters to the method names in the below screenshots? That's my ugly shortcut for now.
For example, consider this text from the screenshot: "simulateSynchronizedSlowCode_sleepMilliseconds_1000". Not too tough to imagine that the source has a hard coded parameter of 1000.
Instead this hard coding, the dream is to pass parameters from the snail4j GUI directly into the method parameters of a method annotated with @com.github.eostermueller.snail4j.Load.
As an aside, the classes and method names in this screenshot got there because I added a special method-level annotation to the code I wanted to load. Snail4j uses ClassGraph to query for all classes with that annotation.
Then, snail4j instantiates the annotated class using (logically) prototype scope.
Plain reflection is used to invoke the method using this code, and the parameters from the Snail4j GUI would be specified there.
The text was updated successfully, but these errors were encountered: