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
Takeshi Ihara
March 01, 2018
Programming
1
1.2k
try! Swift Tokyo 2018: Best Docker Container in Swift
https://www.tryswift.co/events/2018/tokyo/en/#docker
Takeshi Ihara
March 01, 2018
Tweet
Share
More Decks by Takeshi Ihara
See All by Takeshi Ihara
iOSDC20200921: Feature Flagを適切に分類することでA/Bテストの運用コストを下げる
nonchalant
2
1.3k
iOSDC 20190906: 動画アプリの投げ銭機能における 消耗型課金の仕組みと実装
nonchalant
3
5.6k
iOSDC 20190906: 動画アプリの投げ銭機能における 消耗型課金の仕組みと実装 with 発表ノート
nonchalant
2
540
Sign In with Apple
nonchalant
1
2.1k
iOSDC RejectCon 20180915: Factoryの自動生成によりテストを書きやすくする
nonchalant
1
620
iOSDC 20180902: 小さくはじめる端末管理
nonchalant
2
840
devsap 20180728: コード生成のススメ
nonchalant
0
100
potatotips #50: iOSは自動生成の夢を見るか?
nonchalant
0
1.8k
Otemachi.swift x Kyobashi.swift #02: Vapor + ProtocolBuffers + DockerでServer Side Swift入門
nonchalant
1
300
Other Decks in Programming
See All in Programming
AndroidアプリのUIバリエーションをあの手この手で確認する / Check UI variations of Android apps by various means
tkmnzm
1
200
KSPの導入・移行を前向きに検討しよう!
shxun6934
PRO
0
290
僕が思い描くTypeScriptの未来を勝手に先取りする
yukukotani
9
2.4k
Rubyのobject_id
qnighy
6
1.3k
LangChainの現在とv0.3にむけて
os1ma
4
940
Google Sign-inの移行から始めるCredential Manager活用
clockvoid
0
420
Understand the mechanism! Let's do screenshots tests of Compose Previews with various variations / 仕組みから理解する!Composeプレビューを様々なバリエーションでスクリーンショットテストしよう
sumio
3
870
"型"のあるRailsアプリケーション開発 / Typed Rails application development
sinsoku
1
130
The Sequel to a Dream of Ruby Parser's Grammar
ydah
1
220
GenU導入でCDKに初挑戦し、悪戦苦闘した話
hideg
0
170
The Shape of a Service Object
inem
0
530
Developer Joy == Developer Productivity (really!)
hollycummins
1
240
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
294
20k
Clear Off the Table
cherdarchuk
91
320k
Gamification - CAS2011
davidbonilla
79
5k
Debugging Ruby Performance
tmm1
72
12k
The Language of Interfaces
destraynor
153
23k
The Illustrated Children's Guide to Kubernetes
chrisshort
47
48k
Done Done
chrislema
180
16k
RailsConf 2023
tenderlove
28
820
The Cost Of JavaScript in 2023
addyosmani
42
5.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
263
13k
Mobile First: as difficult as doing things right
swwweet
221
8.8k
Learning to Love Humans: Emotional Interface Design
aarron
270
40k
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