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
いろんなところでScala Compile
Search
machu
April 26, 2016
Technology
1.9k
1
Share
いろんなところでScala Compile
市ヶ谷Geek☆Night「Scala大名の平成維新〜殿中でScala!〜」のLTで発表予定の資料です。
machu
April 26, 2016
More Decks by machu
See All by machu
NBAチームから学ぶ強いチームの作り方
machuz
0
57
Authorization to implement with Extensible Effect
machuz
0
460
アルプの 認証/認可分離戦略と手法
machuz
3
790
AuthzCtx - Alp社内共有会
machuz
0
94
アルプのEff独自エフェクト集 / Alp-original ’Eff’ pearls
machuz
1
2.3k
Scalebaseバックエンド構成について/the backend design of Scalebase
machuz
0
6.6k
SQL Meisterへの道 ~更新編~ / sql-meister-CUD
machuz
0
2.4k
SQL Meisterへの道 ~基礎〜参照編~ / sql-meister-R
machuz
0
2.7k
Authz
machuz
0
320
Other Decks in Technology
See All in Technology
AWS DevOps Agentはチームメイトになれるのか?/ Can AWS DevOps Agent become a teammate
kinunori
6
740
自分のハンドルは自分で握れ! ― 自分のケイパビリティを増やし、メンバーのケイパビリティ獲得を支援する ― / Take the wheel yourself
takaking22
1
900
The Journey of Box Building
tagomoris
4
2.3k
データを"持てない"環境でのアノテーション基盤設計
sansantech
PRO
1
110
小説執筆のハーネスエンジニアリング
yoshitetsu
0
670
Data Hubグループ 紹介資料
sansan33
PRO
0
2.9k
エージェントスキルを作って自分のインプットに役立てよう
tsubakimoto_s
0
330
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
23k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.3k
M5Stack CoreS3とZephyr(RTOS)で Edge AIっぽいことしてみた
iotengineer22
0
150
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
3
390
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
150
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
6
570
4 Signs Your Business is Dying
shpigford
187
22k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
160
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
200
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
130
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
680
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
RailsConf 2023
tenderlove
30
1.4k
SEO for Brand Visibility & Recognition
aleyda
0
4.5k
Transcript
いろんなところで Scala Compile #7 ࢢϲ୩Geek˒Night ʮScalaେ໊ͷฏҡ৽ʙ఼தͰScalaʂʙʯ 20164݄26
ABOUT ME 2016年3月に株式会社リクルートマーケティングパートナーズに入社 『スタディサプリ English』『スタディサプリ 英単語』の サーバーサイド、インフラ周りの人。 ▶ 松川 翼
(まつかわ つばさ) @wing_007
Scalaのデメリット
Compile遅い。
解決策は…
None
CPUで どのくらい違うのか
AWS,GCP,Macで Compileしてみる
GCPは気になっていた プリエンティブルVM 使ってみる
プリエンティブルVMとは Google Cloud Platformで提供されている、 AWSでいうスポットインスタンスのようなもの。 GCP側の都合 or UpTime24時間で自動で落ちるが、 安い(7割減)。 参考:
https://cloudplatform.googleblog.com/2015/05/Introducing-Preemptible-VMs-a-new- class-of-compute-available-at-70-off-standard-pricing.html ※以下PVM
コスト ▶ vCPU 32個 + メモリ28.8GB + SSD10GB (asia-east1-a) ▶
PVM無 $0.943/1h $688.48/1Month ▶ PVM有 $0.354/1h $258.66/1Month ※2016/04/26時点 ※1 か月あたり 730 時間
AWSと比較 ▶ PVM無に近い c4.4xlarge (CPUx16,MEM30G) $1.061/1h $774.53/1Month ▶ PVM有に近い m4.xlarge
(CPUx4,MEM16G) $0.348/1h $254.04/1Month ※2016/04/26時点 ※1 か月あたり 730 時間
条件 ▶ プロジェクト ▶ https://github.com/apache/spark ▶ ファイル数2946 コード行数95万 (ざっくり) ▶
これをclean compileしてみる ▶ resolveが遅い問題があるので計測するのは2回目 ▶ 環境 ▶ GCP:CentOS7 AWS:Amazon Linux ▶ Scala2.11.7 ▶ SBT13.9 ▶ JDK8
結果 (Mac) ▶ MBPR 13inch (デュアルコア MEM:16GB DISK:SSD) 470sec前後 ▶
MBPR 15inch (クアッドコア MEM:16GB DISK:SSD) 250sec前後
結果 (GCP) ▶ PVM (vCPU:24 + MEM:28.8GB + DISK:SSD) 250sec前後
▶ PVM (vCPU:32 + MEM:28.8GB + DISK:SSD) 210sec前後
結果 (AWS) ▶ aws c4.xlarge (vCPU:4 MEM:7.5G DISK:EBS) 230sec前後 ▶
aws c4.2xlarge (vCPU:8 MEM:15G DISK:EBS) 170sec前後 ▶ aws c4.4xlarge (vCPU:16 MEM:30G DISK:EBS) 155sec前後 ▶ aws i2.4xlarge (vCPU:8 MEM:15G DISK:EBS) 230sec前後
AWSのc4はやい。
c4が優秀な理由
計算特化なのでCPU強い ▶ AWS c4.xxxx bogomips : 5800.10 xN ▶ AWS
i2.xxx bogomips : 4988.18 xN ▶ GCP PVM bogomips : 4999.99 x32 ࢀর: https://ja.wikipedia.org/wiki/BogoMips
CPU負荷が かたよる瞬間多め GCP C4
CPU数の優位を 活かせていない
現状では Scala Compileには AWS c4インスタンス◎
PVMは安くで CPU数確保したいなら◎ コンソールも すごく使いやすくなってた
Dotty を心待ちに。
ご清聴 ありがとうございました。