ユーザ用ツール

サイト用ツール


linux:compilebench

Compile Benchmark

clang 7.0/8.0

  • 注意: clang のバージョンによって速度が変わります。
Device SoC / Processor CPU core C/T CPU clock RAM Storage OS (*1) OS arch Compiler time (m:s)
Windows Desktop (*1) Ryzen 7 1800X Zen 8/16 3.6 GHz 32GB SATA SSD Windows 10 + WSL (Ubuntu18.04) x86_64 clang 8.0 26 (00:26)
Linux Desktop Core i7-4790K Haswell 4/8 4.0 GHz 16GB SATA SSD Ubuntu 18.04 LTS bionic x86_64 clang 8.0 31 (00:31)
Pixel 3 Snapdragon 845 SDM845 Kryo 385+Kryo 385 4+4/8 2.8+1.8 GHz 4GB eMMC Android 9.0 + Termux aarch64 clang 8.0 35 (00:35)
Essential Phone PH-1 Snapdragon 835 MSM8998 Kryo 280+Kryo 280 4+4/8 2.5+1.9 GHz 4GB eMMC Android 9.0 + Termux aarch64 clang 8.0 40 (00:40)
Windows Desktop (*1) Core i7-6700K Skylake 4/8 4.0 GHz 32GB SATA SSD Windows 10 + WSL (Ubuntu18.04) x86_64 clang 8.0 40 (00:40)
Mac mini Late 2012 Core i7-3615QM IvyBridge 4/8 2.3 GHz 16GB SATA SSD macOS 10.14 Mojave x86_64 xcode 10.2 42 (00:42)
Linux Desktop A10-7870K Godavari Steamroller 2/4 3.9 GHz 8GB SATA SSD Ubuntu 18.04 LTS bionic x86_64 clang 8.0 69 (01:09)
Huawei P30 Lite Kirin 710 Cortex-A73 + A53 4+4/8 2.2+1.7 GHz 4GB eMMC Android 9.0 + Termux aarch64 clang 9.0 71 (01:11)
Fire HD 10 (2019) MT8183 Cortex-A73 + A53 4+4/8 2.0+2.0 GHz 2GB eMMC Android 9.0 + Termux aarch64 clang 9.0 83 (01:23)
ZenFone 3 Max ZC553KL Snapdragon 430 MSM8937 Cortex-A53 + A53 4+4/8 1.4+1.1 GHz 3GB eMMC Android 8.1 + Termux aarch64 clang 8.0 97 (01:37)
MacBook Pro Late 2012 Core i5-3210M IvyBridge 2/4 2.5 GHz 8GB SATA SSD macOS 10.14 Mojave x86_64 xcode 10.2 98 (01:38)
Fire HD 10 (2017) MT8173 Cortex-A72 + A53 2+2/4 1.8+1.4 GHz 2GB eMMC Android 5.1 + Termux aarch64 clang 8.0 101 (01:41)
Oculus Quest Snapdragon 835 Kryo 280+Kryo 280 4+4/8 2.5+1.9 GHz 4GB eMMC Android 7.1 + Termux aarch64 clang 8.0 105 (01:45)
Jetson Nano Tegra X1 Cortex-A57 4/4 1.43 GHz 4GB microSD Ubuntu 18.04 LTS bionic aarch64 clang 8.0 121 (02:01)
ZenFone AR ZS571KL Snapdragon 821 MSM8996 Kryo + Kryo 2+2/4 2.3+2.2 GHz 8GB eMMC Android 7.0 + Termux aarch64 clang 8.0 125 (02:05)
Raspberry Pi 4 BCM2711 Cortex-A72 4/4 1.5 GHz 4GB microSD Ubuntu 19.10 Eoan aarch64 clang 8.0 146 (02:26)
Tegra Note 7 Tegra 4 Cortex-A15 4/4 1.8 GHz 1GB eMMC Android 5.0 + Termux armv7l clang 8.0 153 (02:33)
Nexus 5X Snapdragon 808 MSM8992 Cortex-A57 + A53 2+4/6 1.8+1.4 GHz 2GB eMMC Android 8.1 + Termux aarch64 clang 8.0 178 (02:58)
Linux Desktop Celeron J1900 (BayTrail-D) Silvermont 4/4 2.0 GHz 8GB SATA HDD Ubuntu 18.04 LTS bionic x86_64 clang 8.0 207 (03:27)
Fire HD 6 MT8135 Cortex-A15 + A7 2+2/4 1.5+1.2 GHz 1GB eMMC Android 5.1 + Termux armv7l clang 8.0 221 (03:41)
Chromebook C720 Celeron 2955U Haswell 2/2 1.4 GHz 4GB SSD Chrome OS + Crouton (Ubuntu 18.04) x86_64 clang 8.0 231 (03:51)
Dragonboard 410c Snapdragon 410 APQ8016 Cortex-A53 4/4 1.2 GHz 1GB eMMC Debian 10 Buster aarch64 clang 7.0 268 (04:28)
Nexus 9 Tegra K1 Denver 2/2 2.5 GHz 2GB eMMC Android 5.0 + Termux aarch64 clang 8.0 270 (04:30)
Oculus Go Snapdragon 821 Kryo + Kryo 2+2/4 2.3+2.2 GHz 3GB eMMC Android 7.1 + Termux aarch64 clang 8.0 275 (04:35)
Nexus 7 (2013) Snapdragon APQ8064 Krait 4/4 1.5 GHz 2GB eMMC Android 6.0 + Termux armv7l clang 8.0 284 (04:42)
Nexus 10 Exynos 5250 Cortex-A15 2/2 1.7 GHz 2GB eMMC Android 5.1 + Termux armv7l clang 8.0 291 (04:51)
Nexus 5 Snapdragon 800 MSM8974 Krait 400 4/4 2.3 GHz 2GB eMMC Android 6.0 + Termux armv7l clang 8.0 296 (04:56)
Portabook XMC10 Atom x7-Z8700 (CherryTrail) Airmont 4/4 2.4 GHz 2GB eMMC Ubuntu 18.04 LTS bionic x86_64 clang 8.0 297 (04:57)
MeMO Pad 7 ME176 Atom Z3745 (BayTrail-T) Silvermont 4/4 1.9 GHz 1GB eMMC Android 5.0 + Termux i686 clang 8.0 325 (05:25)
Raspberry Pi 3 B BCM2837 Cortex-A53 4/4 1.2 GHz 1GB microSD Raspbian 10 Buster armv7l clang 7.0 351 (05:51)
GPD Win Atom x7-Z8700 Airmont 4/4 2.4 GHz 4GB eMMC Windows 10 + WSL (Ubuntu18.04) x86_64 clang 8.0 458 (07:38)
Raspberry Pi 2 B BCM2836 Cortex-A7 4/4 0.9 GHz 1GB microSD Raspbian 10 Buster armv7l clang 7.0 820 (13:40)
Fonepad 7 ME372CL Atom Z2560 Saltwell 2/4 1.6 GHz 1GB eMMC Android 5.0 + Termux i686 clang 8.0 779 (12:59)
Raspberry Pi B BCM2835 ARM1176JZF-S 1/1 0.7 GHz 0.5GB SD Raspbian 10 Buster armv6l clang 7.0 6430(107:10)
  • time = Compile 時間、秒単位。値が小さい方が高速
  • C/T = core/thread, 非対称 core は “+” 表記
  • xcode 10.2 = Apple LLVM 10.0.1 = clang 7.0?
  • (*1) : Windows 10 + WSL はファイルアクセス時にオーバーヘッドがあります。Linux を Native Install するとかなり速くなります。

Compile Benchmark All

  • clang の version 毎の違いも含めた全リスト。
Device SoC / Processor CPU core C/T CPU clock RAM Storage OS OS arch Compiler (clang)
3.5 3.8 3.9 4.0 5.0 6.0 7.0 8.0 9.0
Windows Desktop Ryzen 7 1800X Zen 8/16 3.6 GHz 32GB SATA SSD Windows 10 + WSL (Ubuntu18.04) x86_64 25 (00:25) 26 (00:26) 29 (00:29) 26 (00:26)
Windows Desktop Core i7-6700K Skylake 4/8 4.0 GHz 32GB SATA SSD Windows 10 + WSL (Ubuntu18.04) x86_64 34 (00:34) 37 (00:37) 36 (00:36) 41 (00:41) 44 (00:44) 40 (00:40)
Windows Desktop Core i7-4790K Haswell 4/8 4.0 GHz 16GB SATA SSD Windows 10 + WSL (Ubuntu18.04) x86_64 40 (00:40) 43 (00:43) 41 (00:41)
Windows Desktop Celeron N3150 Airmont 4/4 1.6 GHz 16GB SATA HDD Windows 10 + WSL (Ubuntu18.04) x86_64 426 (07:06) 449 (07:29) 448 (07:28)
GPD Win Atom x7-Z8700 Airmont 4/4 2.4 GHz 4GB eMMC Windows 10 + WSL (Ubuntu18.04) x86_64 441 (07:21) 472 (07:52) 458 (07:38)
Device SoC / Processor CPU core C/T CPU clock RAM Storage OS OS arch 3.5 3.8 3.9 4.0 5.0 6.0 7.0 8.0 9.0
Mac mini Late 2012 Core i7-3615QM IvyBridge 4/8 2.3 GHz 16GB SATA SSD macOS 10.14 Mojave x86_64 42 (00:42)
MacBook Pro Late 2012 Core i5-3210M IvyBridge 2/4 2.5 GHz 8GB SATA SSD macOS 10.14 Mojave x86_64 98 (01:38)
Device SoC / Processor CPU core C/T CPU clock RAM Storage OS OS arch 3.5 3.8 3.9 4.0 5.0 6.0 7.0 8.0 9.0
Linux Desktop Core i7-4790K Haswell 4/8 4.0 GHz 16GB SATA SSD Ubuntu 18.04 LTS bionic x86_64 30 (00:30) 33 (00:33) 31 (00:31)
Linux Desktop A10-7870K Godavari Steamroller 2/4 3.9 GHz 8GB SATA SSD Ubuntu 18.04 LTS bionic x86_64 64 (01:04) 69 (01:09) 70 (01:10) 74 (01:14) 79 (01:19) 69 (01:09)
Linux Desktop Celeron J1900 (BayTrail-D) Silvermont 4/4 2.0 GHz 8GB SATA HDD Ubuntu 18.04 LTS bionic x86_64 174 (02:54) 189 (03:09) 192 (03:12) 202 (03:22) 216 (03:36) 207 (03:27)
Portabook XMC10 Atom x7-Z8700 (CherryTrail) Airmont 4/4 2.4 GHz 2GB eMMC Ubuntu 18.04 LTS bionic x86_64 274 (04:34) 304 (05:04) 297 (04:57)
Device SoC / Processor CPU core C/T CPU clock RAM Storage OS OS arch 3.5 3.8 3.9 4.0 5.0 6.0 7.0 8.0 9.0
Jetson Nano Tegra X1 Cortex-A57 4/4 1.43 GHz 4GB microSD Ubuntu 18.04 LTS bionic aarch64 108 (01:48) 113 (01:53) 113 (01:53) 118 (01:58) 125 (02:05) 121 (02:01)
Raspberry Pi 4 B BCM2711 Cortex-A72 4/4 1.5 GHz 4GB microSD Ubuntu 19.10 Eoan aarch64 144 (02:24) 147 (02:27) 146 (02:26) 160 (02:40)
Raspberry Pi 4 B BCM2711 Cortex-A72 4/4 1.5 GHz 4GB microSD Raspbian 10 Buster armv7l 186 (03:06) 195 (03:15) 203 (03:23) 206 (03:26)
Dragonboard 410c Snapdragon 410 APQ8016 Cortex-A53 4/4 1.2 GHz 1GB eMMC Debian 8 Jessie/10 Buster aarch64 117 (01:57) 253 (04:13) 268 (04:28)
Raspberry Pi 3 B BCM2837 Cortex-A53 4/4 1.2 GHz 1GB microSD Raspbian 8 Jessie/10 Buster armv7l 148 (02:28) 194 (03:14) 331 (05:31) 351 (05:51)
Raspberry Pi 2 B BCM2836 Cortex-A7 4/4 0.9 GHz 1GB microSD Raspbian 8 Jessie/10 Buster armv7l 314 (05:14) 395 (06:35) 752 (12:32) 820 (13:40)
Raspberry Pi B BCM2835 ARM1176JZF-S 1/1 0.7 GHz 0.5GB SD Raspbian 8 Jessie/10 Buster armv6l 2535 (42:15) 5995 (99:55) 6430 (107:10)
Device SoC / Processor CPU core C/T CPU clock RAM Storage OS OS arch 3.5 3.8 3.9 4.0 5.0 6.0 7.0 8.0 9.0
Pixel 3 Snapdragon 845 SDM845 Kryo 385+Kryo 385 4+4/8 2.8+1.8 GHz 4GB eMMC Android 9.0 + Termux aarch64 35 (00:35)
Essential Phone PH-1 Snapdragon 835 MSM8998 Kryo 280+Kryo 280 4+4/8 2.5+1.9 GHz 4GB eMMC Android 9.0 + Termux aarch64 40 (00:40)
Huawei P30 Lite Kirin 710 Cortex-A73 + A53 4+4/8 2.2+1.7 GHz 4GB eMMC Android 9.0 + Termux aarch64 71 (01:11)
Fire HD 10 (2019) MT8183 Cortex-A73 + A53 4+4/8 2.0+2.0 GHz 2GB eMMC Android 9.0 + Termux aarch64 83 (01:23)
ZenFone 3 Max ZC553KL Snapdragon 430 MSM8937 Cortex-A53 + A53 4+4/8 1.4+1.1 GHz 3GB eMMC Android 8.1 + Termux aarch64 97 (01:37)
Fire HD 10 (2017) MT8173 Cortex-A72 + A53 2+2/4 1.8+1.4 GHz 2GB eMMC Android 5.1 + Termux aarch64 101 (01:41)
Oculus Quest Snapdragon 835 Kryo 280+Kryo 280 4+4/8 2.5+1.9 GHz 4GB eMMC Android 7.1 + Termux aarch64 105 (01:45)
ZenFone AR ZS571KL Snapdragon 821 MSM8996 Kryo + Kryo 2+2/4 2.3+2.2 GHz 8GB eMMC Android 7.0 + Termux aarch64 125 (02:05)
Tegra Note 7 Tegra 4 Cortex-A15 4/4 1.8 GHz 1GB eMMC Android 5.0 + Termux armv7l 153 (02:33)
Nexus 5X Snapdragon 808 MSM8992 Cortex-A57 + A53 2+4/6 1.8+1.4 GHz 2GB eMMC Android 8.1 + Termux aarch64 178 (02:58)
Fire HD 6 MT8135 Cortex-A15 + A7 2+2/4 1.5+1.2 GHz 1GB eMMC Android 5.1 + Termux armv7l 221 (03:41)
Nexus 9 Tegra K1 Denver 2/2 2.5 GHz 2GB eMMC Android 5.0 + Termux aarch64 270 (04:30)
Oculus Go Snapdragon 821 Kryo + Kryo 2+2/4 2.3+2.2 GHz 3GB eMMC Android 7.1 + Termux aarch64 275 (04:35)
Nexus 7 (2013) Snapdragon APQ8064 Krait 4/4 1.5 GHz 2GB eMMC Android 6.0 + Termux armv7l 284 (04:42)
Nexus 10 Exynos 5250 Cortex-A15 2/2 1.7 GHz 2GB eMMC Android 5.1 + Termux armv7l 291 (04:51)
Nexus 5 Snapdragon 800 MSM8974 Krait 400 4/4 2.3 GHz 2GB eMMC Android 6.0 + Termux armv7l 296 (04:56)
MeMO Pad 7 ME176 Atom Z3745 (BayTrail-T) Silvermont 4/4 1.9 GHz 1GB eMMC Android 5.0 + Termux i686 325 (05:25)
Fonepad 7 ME372CL Atom Z2560 Saltwell 2/4 1.6 GHz 1GB eMMC Android 5.0 + Termux i686 779 (12:59)
Device SoC / Processor CPU core C/T CPU clock RAM Storage OS OS arch 3.5 3.8 3.9 4.0 5.0 6.0 7.0 8.0 9.0
Chromebook Flip C101PA RK3399 OP1 Cortex-A72 + A53 2+4/6 2.0+1.5 GHz 4GB eMMC Chrome OS + Linux (Debian 9) aarch64 92 (01:32) 96 (01:36) 95 (01:35)
Chromebook C720 Celeron 2955U Haswell 2/2 1.4 GHz 4GB SSD Chrome OS + Crouton (Ubuntu 18.04) x86_64 191 (03:11) 207 (03:27) 216 (03:36) 225 (03:45) 248 (04:08) 231 (03:51)
  • clang の version が上がるほど遅くなっています。
  • 殆どの場合 RAM に乗る 2回目の方が速い。特に HDD だと顕著。
  • スマートフォンは発熱でクロックが下がるため 1回目の方が速い場合が多い。
  • またスマートフォンは充電中だとバッテリーが熱を持つため遅くなる。

Compile 内容

  • flatlib3 の linux 向けビルド。
  • 2回 build して速い方の時間を採用。

Ubuntu/Debian

$ sudo apt install clang zlib1g-dev libvorbis-dev libopenal-dev
$ flmake clean
$ time flmake linux
$ flmake clean
$ time flmake linux

Android + Termux

$ pkg install python clang zlib openal-soft libogg libvorbis
$ flmake clean
$ time flmake linux
$ flmake clean
$ time flmake linux

旧版

macOS + HomeBrew

$ brew install libvorbis libogg
$ flmake clean
$ time flmake linux
$ flmake clean
$ time flmake linux
linux/compilebench.txt · 最終更新: 2019/11/10 00:34 by oga