[メモ] ASUS TinkerBoard vs RaspberryPi3 - BYTE UNIX Benchmarks (Version 5.1.3)


## 概要
- BYTE UNIX Benchmarksで、ベンチマーク.
- 普通にやると、1回1時間のテスト。

## 環境

1. Raspberry Pi 3 + `2017-03-02-raspbian-jessie` (4.4.50) + ファン付ケース
2. Tinker Board + TinkerOS v1.4 (4.4.16)
3. Tinker Board + [CustomBuildOS](http://qiita.com/mt08/items/e8afe6de9e8a0bf1e89f) (4.4.52)


## 手順

```bash:キホン、こんな感じ。もうちょっとなんかパッケージ入れたかも..
sudo apt-get install git-core build-essential
git clone https://github.com/kdlucas/byte-unixbench.git
cd byte-unixbench/UnixBench
./Run
```

- RPi3では、Makefileを編集 (`-march=native -mtune=native`があるとエラー出る)

	```diff
	diff --git a/UnixBench/Makefile b/UnixBench/Makefile
	index d6868ba..1dd7e42 100644
	--- a/UnixBench/Makefile
	+++ b/UnixBench/Makefile
	@@ -87,7 +87,7 @@ OPTON = -O3 -ffast-math
	 OSNAME:=$(shell uname -s)

	 ifeq ($(OSNAME),Linux)
	-OPTON += -march=native -mtune=native
	+#OPTON += -march=native -mtune=native
	 endif
	 ifeq ($(OSNAME),Darwin)
	 # (adjust flags or comment out this section for older versions of XCode or OS X)
	```



## 結果

とりあえず、表に埋めただけ...


<table>
	<tr>
		<th>RESULT</th>
		<td></td>
		<td colspan="3">running 1 parallel copy of tests</td>
		<td colspan="3">running 4 parallel copies of tests</td>
	</tr>
	<tr>
		<th>System Benchmarks Index Values       </th>
		<td><b>BASELINE</b></td>
		<td><b>RPi3 4.4.50-v7+</b></td>
		<td><b>TinkerOS v1.4 4.4.16</b></td>
		<td><b>CustomBuild 4.4.52</b></td>
		<td><b>RPi3 4.4.50-v7+</b></td>
		<td><b>TinkerOS v1.4 4.4.16</b></td>
		<td><b>CustomBuild 4.4.52</b></td>
	</tr>
	<tr>
		<th>Dhrystone 2 using register variables </th>
		<td>116700.0</td>
		<td>4518310.1</td>
		<td>8866656.0</td>
		<td>10094986.0</td>
		<td>18041530.0</td>
		<td>28069515.5</td>
		<td>30422699.0</td>
	</tr>
	<tr>
		<th>Double-Precision Whetstone           </th>
		<td>55.0</td>
		<td>780.2</td>
		<td>1221.3</td>
		<td>1494.8</td>
		<td>3118.2</td>
		<td>4191.8</td>
		<td>5071.9</td>
	</tr>
	<tr>
		<th>Execl Throughput                     </th>
		<td>43.0</td>
		<td>615.3</td>
		<td>791.4</td>
		<td>974.9</td>
		<td>2258.6</td>
		<td>4046.7</td>
		<td>4141.1</td>
	</tr>
	<tr>
		<th>File Copy 1024 bufsize 2000 maxblocks</th>
		<td>3960.0</td>
		<td>152828.9</td>
		<td>171877.4</td>
		<td>173252.4</td>
		<td>245301.5</td>
		<td>269298.5</td>
		<td>218831.1</td>
	</tr>
	<tr>
		<th>File Copy 256 bufsize 500 maxblocks  </th>
		<td>1655.0</td>
		<td>44207.5</td>
		<td>65857.3</td>
		<td>57547.3</td>
		<td>66563.1</td>
		<td>84120.9</td>
		<td>62352.0</td>
	</tr>
	<tr>
		<th>File Copy 4096 bufsize 8000 maxblocks</th>
		<td>5800.0</td>
		<td>360868.5</td>
		<td>471021.1</td>
		<td>421426.1</td>
		<td>624393.6</td>
		<td>778903.3</td>
		<td>683966.7</td>
	</tr>
	<tr>
		<th>Pipe Throughput                      </th>
		<td>12440.0</td>
		<td>286377.4</td>
		<td>414751.2</td>
		<td>362544.6</td>
		<td>1139462.8</td>
		<td>1509070.2</td>
		<td>1253660.1</td>
	</tr>
	<tr>
		<th>Pipe-based Context Switching         </th>
		<td>4000.0</td>
		<td>58794.8</td>
		<td>25190.0</td>
		<td>48032.5</td>
		<td>196303.1</td>
		<td>302571.7</td>
		<td>148544.1</td>
	</tr>
	<tr>
		<th>Process Creation                     </th>
		<td>126.0</td>
		<td>2496.4</td>
		<td>3192.2</td>
		<td>369.6</td>
		<td>5085.2</td>
		<td>9703.9</td>
		<td>8500.8</td>
	</tr>
	<tr>
		<th>Shell Scripts (1 concurrent)         </th>
		<td>42.4</td>
		<td>2215.7</td>
		<td>2812.4</td>
		<td>1352.4</td>
		<td>4944.6</td>
		<td>8245.1</td>
		<td>7484.8</td>
	</tr>
	<tr>
		<th>Shell Scripts (8 concurrent)         </th>
		<td>6.0</td>
		<td>610.3</td>
		<td>1114.1</td>
		<td>1020.5</td>
		<td>661.0</td>
		<td>1077.0</td>
		<td>1025.5</td>
	</tr>
	<tr>
		<th>System Call Overhead                 </th>
		<td>15000.0</td>
		<td>700103.4</td>
		<td>871505.5</td>
		<td>783442.5</td>
		<td>2688464.6</td>
		<td>2939861.8</td>
		<td>2394917.0</td>
	</tr>

	<tr>
<td colspan="7"></td>
	</tr>

	<tr>
		<th>INDEX</th>
		<td></td>
		<td colspan="3">running 1 parallel copy of tests</td>
		<td colspan="3">running 4 parallel copies of tests</td>
	</tr>
	<tr>
		<th>System Benchmarks Index Values       </th>
		<td></td>
		<td><b>RPi3 4.4.50-v7+</b></td>
		<td><b>TinkerOS v1.4 4.4.16</b></td>
		<td><b>CustomBuild 4.4.52</b></td>
		<td><b>RPi3 4.4.50-v7+</b></td>
		<td><b>TinkerOS v1.4 4.4.16</b></td>
		<td><b>CustomBuild 4.4.52</b></td>
	</tr>
	<tr>
		<th>Dhrystone 2 using register variables </th>
		<td></td>
		<td>387.2</td>
		<td>759.8</td>
		<td>865.0</td>
		<td>1546.0</td>
		<td>2405.3</td>
		<td>2606.9</td>
	</tr>
	<tr>
		<th>Double-Precision Whetstone           </th>
		<td></td>
		<td>141.8</td>
		<td>222.1</td>
		<td>271.8</td>
		<td>566.9</td>
		<td>762.1</td>
		<td>922.2</td>
	</tr>
	<tr>
		<th>Execl Throughput                     </th>
		<td></td>
		<td>143.1</td>
		<td>184.0</td>
		<td>226.7</td>
		<td>525.3</td>
		<td>941.1</td>
		<td>963</td>
	</tr>
	<tr>
		<th>File Copy 1024 bufsize 2000 maxblocks</th>
		<td></td>
		<td>385.9</td>
		<td>434.0</td>
		<td>437.5</td>
		<td>619.4</td>
		<td>680.0</td>
		<td>552.6</td>
	</tr>
	<tr>
		<th>File Copy 256 bufsize 500 maxblocks  </th>
		<td></td>
		<td>267.1</td>
		<td>397.9</td>
		<td>347.7</td>
		<td>402.2</td>
		<td>508.3</td>
		<td>376.7</td>
	</tr>
	<tr>
		<th>File Copy 4096 bufsize 8000 maxblocks</th>
		<td></td>
		<td>622.2</td>
		<td>812.1</td>
		<td>726.6</td>
		<td>1076.5</td>
		<td>1342.9</td>
		<td>1179.3</td>
	</tr>
	<tr>
		<th>Pipe Throughput                      </th>
		<td></td>
		<td>230.2</td>
		<td>333.4</td>
		<td>291.4</td>
		<td>916.0</td>
		<td>1213.1</td>
		<td>1007.8</td>
	</tr>
	<tr>
		<th>Pipe-based Context Switching         </th>
		<td></td>
		<td>147.0</td>
		<td>63.0</td>
		<td>120.1</td>
		<td>490.8</td>
		<td>756.4</td>
		<td>371.4</td>
	</tr>
	<tr>
		<th>Process Creation                     </th>
		<td></td>
		<td>198.1</td>
		<td>253.3</td>
		<td>29.3</td>
		<td>403.6</td>
		<td>770.1</td>
		<td>674.7</td>
	</tr>
	<tr>
		<th>Shell Scripts (1 concurrent)         </th>
		<td></td>
		<td>522.6</td>
		<td>663.3</td>
		<td>319.0</td>
		<td>1166.2</td>
		<td>1944.6</td>
		<td>1765.3</td>
	</tr>
	<tr>
		<th>Shell Scripts (8 concurrent)         </th>
		<td></td>
		<td>1017.2</td>
		<td>1856.9</td>
		<td>1700.9</td>
		<td>1101.6</td>
		<td>1795.0</td>
		<td>1709.2</td>
	</tr>
	<tr>
		<th>System Call Overhead                 </th>
		<td></td>
		<td>466.7</td>
		<td>581.0</td>
		<td>522.3</td>
		<td>1792.3</td>
		<td>1959.9</td>
		<td>1596.6</td>
	</tr>
	<tr>
		<th>System Benchmarks Index Score </th>
		<td></td>
		<td>311.6</td>
		<td>399.6</td>
		<td>330.7</td>
		<td>781.1</td>
		<td>1119.4</td>
		<td>969.7</td>
	</tr>

</table>


## その他
- `apt-get upgrade`は、してない。
- 外気温度などによっても、結果は変わりそうな気がする..
- Raspberry Pi 3 + `2017-03-02-raspbian-jessie` + ヒートシンク無しのケース(Pibow Coupé Android Things)<br>=>高温のため、停止。画面の右上にこんなものが表示されてました。<br>
![RPi-OverHeat.JPG](https://qiita-image-store.s3.amazonaws.com/0/75594/f26fda6f-eb21-60fe-ef7f-1d2f9a12d971.jpeg)