|
| 1 | +# TODOs |
| 2 | + |
| 3 | +## Update the use of Gatling |
| 4 | + |
| 5 | +The current references to using gatling are pretty old. Need to update it so we can utilizes later versions. |
| 6 | + |
| 7 | +### Using gatling |
| 8 | + |
| 9 | +Alternatively, you can use [gatling](https://gatling.io/) (a performance library with a scala dsl ). |
| 10 | + |
| 11 | +This should launch the `WorkshopSimulation`. |
| 12 | + |
| 13 | +```bash |
| 14 | + mvn -f java-perf-workshop-tester/ gatling:test |
| 15 | +``` |
| 16 | + |
| 17 | +Sample output while running: |
| 18 | +```bash |
| 19 | +[~/java-perf-workshop/java-perf-workshop-tester]$ mvn gatling:test |
| 20 | +[INFO] Scanning for projects... |
| 21 | +[INFO] |
| 22 | +[INFO] ------------------------------------------------------------------------ |
| 23 | +[INFO] Building java-perf-workshop-tester 1.1.0-SNAPSHOT |
| 24 | +[INFO] ------------------------------------------------------------------------ |
| 25 | +[INFO] |
| 26 | +[INFO] --- gatling-maven-plugin:2.2.4:test (default-cli) @ java-perf-workshop-tester --- |
| 27 | +19:12:16,662 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] |
| 28 | +19:12:16,663 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] |
| 29 | +19:12:16,663 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/J:/Workspaces/java-perf-workshop/java-perf-workshop-tester/target/test-classes/logback.xml] |
| 30 | +19:12:16,663 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath. |
| 31 | +19:12:16,663 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/J:/Workspaces/java-perf-workshop/java-perf-workshop-tester/target/test-classes/logback.xml] |
| 32 | +19:12:16,663 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/C:/Users/JMonterrubio/.m2/repository/io/gatling/gatling-maven-plugin/2.2.4/gatling-maven-plugin-2.2.4.jar!/logback.xml] |
| 33 | +19:12:16,727 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set |
| 34 | +19:12:16,731 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] |
| 35 | +19:12:16,737 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE] |
| 36 | +19:12:16,742 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property |
| 37 | +19:12:16,781 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN |
| 38 | +19:12:16,782 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT] |
| 39 | +19:12:16,782 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. |
| 40 | +19:12:16,783 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7a0ac6e3 - Registering current configuration as safe fallback point |
| 41 | + |
| 42 | +Simulation cchesser.javaperf.workshop.WorkshopSimulation started... |
| 43 | +``` |
| 44 | + |
0 commit comments