Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Gatling砲をぶっ放せ / Let Measure Performance with Ga...
Search
Akira Morikawa
March 08, 2019
Technology
0
920
Gatling砲をぶっ放せ / Let Measure Performance with Gatling
TECH DO #13
https://techdo.connpass.com/event/122193/
Akira Morikawa
March 08, 2019
Tweet
Share
More Decks by Akira Morikawa
See All by Akira Morikawa
コロナ禍だからこそ考えるオフラインコミュニティの意義 / significance of community
ariaki
0
1.8k
アウトプットの始め方/start output 20230121
ariaki
0
280
web-secure-phpcon2020
ariaki
3
3.3k
オブジェクトライフサイクルとメモリ管理を学ぼう / OOC 2020
ariaki
8
3.6k
エンジニアはアウトプットによって成長できるのか? / Grow with your output
ariaki
24
6.4k
アウトプットを始めよう / How to begin output jawsug-bgnr
ariaki
2
3.8k
参加者の安全を守れていますか? / Protecting community safety
ariaki
1
6.8k
タピオカに学ぶ二段階認証 / tapioca-mfa
ariaki
5
1.3k
古に学ぶ個人開発のススメ / My recommendation of personal development
ariaki
1
1.4k
Other Decks in Technology
See All in Technology
MagicPod MCPサーバー開発の裏側とAIエージェント活用の展望
magicpod
0
240
Next.jsと状態管理のプラクティス
uhyo
6
2.2k
TanStack Start 技術選定の裏側 / Findy-Lunch-LT-TanStack-Start
iktakahiro
1
150
LLMの開発と社会実装の今と未来 / AI Builders' Community (ABC) vol.2
pfn
PRO
2
160
"発信文化"をどうやって計測する?技術広報のKPI探索記/How do we measure communication culture?
bitkey
4
320
Why Platform Engineering? - マルチプロダクト・少人数 SRE の壁を越える挑戦 -
nulabinc
PRO
5
450
Terraform にコントリビュートしていたら Azure のコストをやらかした話 / How I Messed Up Azure Costs While Contributing to Terraform
nnstt1
1
520
テストコードにはテストの意図を込めよう(2025年版) #retechtalk / Put the intent of the test 2025
nihonbuson
PRO
9
1.7k
計装を見直してアプリケーションパフォーマンスを改善させた話
donkomura
1
130
激動の一年を通じて見えてきた「技術でリードする」ということ
ktr_0731
8
7.1k
Cursorを全エンジニアに配布 その先に見据えるAI駆動開発の未来 / 2025-05-13-forkwell-ai-study-1-cursor-at-loglass
itohiro73
2
610
雑に疎通確認だけしたい...せや!CloudShell使ったろ!
alchemy1115
0
230
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
133
9.3k
How STYLIGHT went responsive
nonsquared
100
5.5k
Designing for humans not robots
tammielis
253
25k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
430
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Fontdeck: Realign not Redesign
paulrobertlloyd
84
5.5k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
570
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Stop Working from a Prison Cell
hatefulcrawdad
268
20k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
19
1.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
Transcript
Mar 08, 2019 | @ariaki4dev | #techdo 砲をぶっ放せ Let Measure
Performance with Gatling
Mar 08, 2019 | @ariaki4dev | #techdo 2 About Me
ariaki ( ありあき ) @ariaki4dev #engineers_lt , #techdo MEDIA DO Co.,Ltd. Tokyo, Japan https://press.forkwell.com/entry/2019/01/30/engineer_component https://shiganai.org/ep/sp52-ariaki4dev https://note.mu/ariakira
Mar 08, 2019 | @ariaki4dev | #techdo 3 What’s Gatling
• Webアプリケーションの負荷テストツール • オープンソース(※製品版あり) • 製品の開発言語はScala • シナリオファイルはScala DSLで書ける • ハイパフォーマンス • レポートHTMLが綺麗 • https://gatling.io/
Mar 08, 2019 | @ariaki4dev | #techdo https://gatling.io/ https://jmeter.apache.org/ http://grinder.sourceforge.net/
http://tsung.erlang-projects.org/ https://www.microfocus.com/produc ts/loadrunner-load-testing/ 4 Trends 主要なロードテストツール
Mar 08, 2019 | @ariaki4dev | #techdo 5 Trends
Mar 08, 2019 | @ariaki4dev | #techdo Demonstration
Mar 08, 2019 | @ariaki4dev | #techdo 7 How to
Install 直接インストール パッケージマネージャを利用 1. 以下よりダウンロード 2. 適当な場所に解凍 3. 以下のファイルを実行 [macOS/Linux] bin/gatling.sh [Windows] bin/gatling.bat • maven • sbt
Mar 08, 2019 | @ariaki4dev | #techdo 8 How to
Install 1. それぞれ最新版をインストールします ◦ JDK 11 (current) ◦ Scala sbt (current) 2. 環境変数を設定します ◦ JAVA_HOME ◦ SBT_HOME 3. 以下のコマンドでデモプロジェクトをダウンロードします $ git clone https://github.com/gatling/gatling-sbt-plugin-demo.git sbt使用時の詳細手順
Mar 08, 2019 | @ariaki4dev | #techdo 9 How to
Install sbt使用時の詳細手順 4. リポジトリのディレクトリに移動し、 sbt を実行します ※初回実行時のみパッケージダウンロードが必要なため時間がかかります 5. sbt シェルが起動します ◦ 全体テスト … > gatling:test ◦ 特定テスト … > gatling:testOnly [クラス名]
Mar 08, 2019 | @ariaki4dev | #techdo 10 How to
Install project build.properties plugins.sbt src build.sbt + resources scala … ビルド設定を記述する … プラグインを読込設定する … テスト時に読み込まれるリソースファイルを配置する … テスト時に読み込まれるシナリオファイルを配置する … ビルドオプションを設定する ディレクトリ構成
Mar 08, 2019 | @ariaki4dev | #techdo 11 Test Code
src/test/scala/mediado/TestSimulation.scala ①クライアント設定 ②シナリオ作成 ③テスト実行設定
Mar 08, 2019 | @ariaki4dev | #techdo 12 Test Code
シナリオ設定 シナリオ名 リクエスト名 リクエストパス レスポンス検証 • HTTP/1.x 200を返却している • <h1>HOME</h1>タグが存在する 複数手続きを1シナリオで実行
Mar 08, 2019 | @ariaki4dev | #techdo 13 Test Code
シナリオ設定例
Mar 08, 2019 | @ariaki4dev | #techdo 14 Test Code
シナリオ設定例
Mar 08, 2019 | @ariaki4dev | #techdo 15 Test Code
テスト実行設定 設定項目 解説 nothingFor(10 seconds) 10秒間何もしない atOnceUsers(10) 10クライアントから同時に1回接続 rampUsers(10) over (5 seconds) 5秒かけて10クライアントまで線形に増加 constantUsersPerSec(10) during (5 seconds) 5秒間、1秒あたり10クライアントが接続 rampUsersPerSec(10) to 20 during (5 minutes) 5分間かけて、1秒あたり10→20クライアントに増加 heavisideUsers(100) over(5 minutes) ヘヴィサイドの段階関数を元にクライアント数を増加 https://gatling.io/docs/3.0/general/simulation_setup/
Mar 08, 2019 | @ariaki4dev | #techdo 16 Conclude •
Scala DSLでシナリオを柔軟に作成できる ◦ コード書くの楽しい ◦ ソース管理しやすい(コードなので) ◦ 複雑なシナリオ作成もでき、GUIより辛くない • Enterpriseレベルサポートがある • JMeterと比べて機能が少なく残念な部分もある
Build Something Amazing written by ariaki4dev