Skip to content

Instantly share code, notes, and snippets.

Avatar

Movile MovileGente

View GitHub Profile
View Code 7
apiVersion: batch/v1
kind: Job
metadata:
namespace: loadtest-gatling
name: loadtest-gatling
labels:
jobgroup: loadtest-gatling
spec:
completions: 8
View Code 6: Dockerfile
## 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
<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
<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
<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
setUp(
scenario.inject(
rampConcurrentUsers(0) to (5400) during (75 minutes),
constantConcurrentUsers(5400) during (20 minutes)
).protocols(httpConfig)
)
View Code 1: Gatling simulation example
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
react-native run-android
View 08
react-native run-ios
View gist:4f346b066dbdecbe2918fc2efe5f895d
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