Upgrade to Pro — share decks privately, control downloads, hide ads and more …

try! Swift Tokyo 2018: Best Docker Container in...

try! Swift Tokyo 2018: Best Docker Container in Swift

Takeshi Ihara

March 01, 2018
Tweet

More Decks by Takeshi Ihara

Other Decks in Programming

Transcript

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 5JNF TFD      3FRVFTU  

       GET Concurrency = 10
  8. GET Concurrency = 100 & 1000 5JNF TFD  

       3FRVFTU $PODVSSFODZ      5JNF TFD      3FRVFTU $PODVSSFODZ    
  9. 5JNF TFD      3FRVFTU  

       POST Concurrency = 10
  10. 5JNF TFD      3FRVFTU $PODVSSFODZ 

       5JNF TFD      3FRVFTU $PODVSSFODZ      POST Concurrency = 100 & 1000
  11. Docker Images (Build) 6CVOUV EPDLFSTXJGU CVJME WBQPSCVJME  .# (#

     .# (# .#  .# (# .# (# .#
  12. Docker Images (Run) 6CVOUV EPDLFSTXJGU WBQPSTFSWFS  .# .# .#

    (# .#  .# .# .# (# .# ˣ.#
  13. 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?
  14. Thank you ⚡ • Twitter: @nonchalant0303 • GitHub: @Nonchalant •

    https://github.com/Nonchalant/ docker-swift-benchmark