View Code 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
namespace: loadtest-gatling | |
name: loadtest-gatling | |
labels: | |
jobgroup: loadtest-gatling | |
spec: | |
completions: 8 |
View Code 6: Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## gatling project build as uberjar | |
FROM maven:3.6-jdk-11-slim AS java-build | |
WORKDIR /app | |
ADD src src | |
ADD pom.xml pom.xml | |
RUN mvn clean install |
View Code 5: pom.xml - Maven Shade plugin for building an uberjar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<configuration> | |
<filters> | |
<filter> | |
<artifact>*:*</artifact> | |
<excludes> | |
<exclude>META-INF/*.DSA</exclude> | |
<exclude>META-INF/*.SF</exclude> |
View Code 4: pom.xml - Scala Maven plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>net.alchim31.maven</groupId> | |
<artifactId>scala-maven-plugin</artifactId> | |
<configuration> | |
<args> | |
<arg>-deprecation</arg> | |
<arg>-feature</arg> | |
</args> | |
</configuration> | |
<executions> |
View Code 3: pom.xml - Maven plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
<dependency> | |
<groupId>io.gatling.highcharts</groupId> | |
<artifactId>gatling-charts-highcharts</artifactId> | |
<version>MANUALLY_REPLACE_WITH_LATEST_VERSION</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<plugin> |
View Code 2: Gatling scenario setup example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setUp( | |
scenario.inject( | |
rampConcurrentUsers(0) to (5400) during (75 minutes), | |
constantConcurrentUsers(5400) during (20 minutes) | |
).protocols(httpConfig) | |
) |
View Code 1: Gatling simulation example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import scala.concurrent.duration._ | |
class BasicSimulation extends Simulation { | |
val httpProtocol = http | |
.baseUrl("http://computer-database.gatling.io") | |
.acceptHeader("text/html,application/xhtml+xml,application/xml;) |
View 09
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
react-native run-android |
View 08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
react-native run-ios |
View gist:4f346b066dbdecbe2918fc2efe5f895d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools |
NewerOlder