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
try! Swift Tokyo 2018: Best Docker Container in...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Takeshi Ihara
March 01, 2018
Programming
1.4k
1
Share
try! Swift Tokyo 2018: Best Docker Container in Swift
https://www.tryswift.co/events/2018/tokyo/en/#docker
Takeshi Ihara
March 01, 2018
More Decks by Takeshi Ihara
See All by Takeshi Ihara
iOSDC20200921: Feature Flagを適切に分類することでA/Bテストの運用コストを下げる
nonchalant
3
1.4k
iOSDC 20190906: 動画アプリの投げ銭機能における 消耗型課金の仕組みと実装
nonchalant
3
6.3k
iOSDC 20190906: 動画アプリの投げ銭機能における 消耗型課金の仕組みと実装 with 発表ノート
nonchalant
2
620
Sign In with Apple
nonchalant
1
2.4k
iOSDC RejectCon 20180915: Factoryの自動生成によりテストを書きやすくする
nonchalant
1
730
iOSDC 20180902: 小さくはじめる端末管理
nonchalant
2
1k
devsap 20180728: コード生成のススメ
nonchalant
0
130
potatotips #50: iOSは自動生成の夢を見るか?
nonchalant
0
2k
Otemachi.swift x Kyobashi.swift #02: Vapor + ProtocolBuffers + DockerでServer Side Swift入門
nonchalant
1
360
Other Decks in Programming
See All in Programming
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
0
150
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
240
The Monolith Strikes Back: Why AI Agents ❤️ Rails Monoliths
serradura
0
330
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
370
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
280
Running Swift without an OS
kishikawakatsumi
0
840
ハンズオンで学ぶクラウドネイティブ
tatsukiminami
0
130
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
180
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
130
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
130
感情を設計する
ichimichi
5
1.5k
事業会社でのセキュリティ長期インターンについて
masachikaura
0
250
Featured
See All Featured
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
480
The Limits of Empathy - UXLibs8
cassininazir
1
300
Git: the NoSQL Database
bkeepers
PRO
432
67k
Rails Girls Zürich Keynote
gr2m
96
14k
We Are The Robots
honzajavorek
0
210
A better future with KSS
kneath
240
18k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
220
Navigating Team Friction
lara
192
16k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
220
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
110
Transcript
Best Docker Container in Swift USZ4XJGU$POGFSFODF 5BLFTIJ*IBSB
Swift on Linux 1. Ubuntu 14.x and 16.x 2. Server
Side Swift 3. Docker
Docker Images (Build) • vapor-build:16.04 └─ docker-swift-build:16.04 └─ ubuntu:16.04(LTS) •
vapor-build:14.04 └─ docker-swift-build:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Build) • vapor-build:16.04 └─ docker-swift-build:16.04 └─ ubuntu:16.04(LTS) •
vapor-build:14.04 └─ docker-swift-build:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Build) • vapor-build:16.04 └─ docker-swift-build:16.04 └─ ubuntu:16.04(LTS) •
vapor-build:14.04 └─ docker-swift-build:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Run) • vapor-server:16.04 └─ docker-swift:16.04 └─ ubuntu:16.04(LTS) •
vapor-server:14.04 └─ docker-swift:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Run) • vapor-server:16.04 └─ docker-swift:16.04 └─ ubuntu:16.04(LTS) •
vapor-server:14.04 └─ docker-swift:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Run) • vapor-server:16.04 └─ docker-swift:16.04 └─ ubuntu:16.04(LTS) •
vapor-server:14.04 └─ docker-swift:14.04 └─ ubuntu:14.04(LTS)
Benchmark 4FSWFS $MJFOU .BDIJOF &$DMBSHF &$UNJDSP "QQMJDBUJPO 4XJGU7BQPS "QBDIF#FODI
5JNF TFD 3FRVFTU
GET Concurrency = 10
GET Concurrency = 100 & 1000 5JNF TFD
3FRVFTU $PODVSSFODZ 5JNF TFD 3FRVFTU $PODVSSFODZ
5JNF TFD 3FRVFTU
POST Concurrency = 10
5JNF TFD 3FRVFTU $PODVSSFODZ
5JNF TFD 3FRVFTU $PODVSSFODZ POST Concurrency = 100 & 1000
Docker Images (Build) 6CVOUV EPDLFSTXJGU CVJME WBQPSCVJME .# (#
.# (# .# .# (# .# (# .#
Docker Images (Run) 6CVOUV EPDLFSTXJGU WBQPSTFSWFS .# .# .#
(# .# .# .# .# (# .# ˣ.#
Summary • Each Dockerfile for build and run • nonchalant/docker-swift-build
• nonchalant/docker-swift • Currently, Ubuntu 16.04 is best • Ubuntu 18.04 (LTS) will be better?
Thank you ⚡ • Twitter: @nonchalant0303 • GitHub: @Nonchalant •
https://github.com/Nonchalant/ docker-swift-benchmark