该文章使用unixbench 对作者使用开发过的平台,进行性能测评。用理论和数据告诉你那家ARM 强悍。
(Dual core Cortex-A72 + Quard core Cortex-A53)
------------------------------------------------------------------------
Benchmark Run: Tue Jul 07 2020 10:32:15 - 11:00:16
6 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 15786152.9 lps (10.0 s, 7 samples)
Double-Precision Whetstone 3027.1 MWIPS (7.4 s, 7 samples)
Execl Throughput 2500.3 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 336986.4 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 126888.6 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 755282.1 KBps (30.0 s, 2 samples)
Pipe Throughput 726356.5 lps (10.0 s, 7 samples)
Pipe-based Context Switching 49278.7 lps (10.0 s, 7 samples)
Process Creation 3528.0 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 2525.8 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1153.4 lpm (60.0 s, 2 samples)
System Call Overhead 683907.4 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 15786152.9 1352.7
Double-Precision Whetstone 55.0 3027.1 550.4
Execl Throughput 43.0 2500.3 581.5
File Copy 1024 bufsize 2000 maxblocks 3960.0 336986.4 851.0
File Copy 256 bufsize 500 maxblocks 1655.0 126888.6 766.7
File Copy 4096 bufsize 8000 maxblocks 5800.0 755282.1 1302.2
Pipe Throughput 12440.0 726356.5 583.9
Pipe-based Context Switching 4000.0 49278.7 123.2
Process Creation 126.0 3528.0 280.0
Shell Scripts (1 concurrent) 42.4 2525.8 595.7
Shell Scripts (8 concurrent) 6.0 1153.4 1922.4
System Call Overhead 15000.0 683907.4 455.9
========
System Benchmarks Index Score 629.4
------------------------------------------------------------------------
Benchmark Run: Tue Jul 07 2020 11:00:16 - 11:29:18
6 CPUs in system; running 6 parallel copies of tests
Dhrystone 2 using register variables 58573520.5 lps (10.0 s, 7 samples)
Double-Precision Whetstone 13096.0 MWIPS (8.4 s, 7 samples)
Execl Throughput 5928.4 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 395138.7 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 117778.3 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 974802.0 KBps (30.0 s, 2 samples)
Pipe Throughput 3306562.3 lps (10.0 s, 7 samples)
Pipe-based Context Switching 156299.7 lps (10.0 s, 7 samples)
Process Creation 9688.7 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 10857.1 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1503.1 lpm (60.1 s, 2 samples)
System Call Overhead 2540084.7 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 58573520.5 5019.2
Double-Precision Whetstone 55.0 13096.0 2381.1
Execl Throughput 43.0 5928.4 1378.7
File Copy 1024 bufsize 2000 maxblocks 3960.0 395138.7 997.8
File Copy 256 bufsize 500 maxblocks 1655.0 117778.3 711.7
File Copy 4096 bufsize 8000 maxblocks 5800.0 974802.0 1680.7
Pipe Throughput 12440.0 3306562.3 2658.0
Pipe-based Context Switching 4000.0 156299.7 390.7
Process Creation 126.0 9688.7 768.9
Shell Scripts (1 concurrent) 42.4 10857.1 2560.6
Shell Scripts (8 concurrent) 6.0 1503.1 2505.1
System Call Overhead 15000.0 2540084.7 1693.4
========
System Benchmarks Index Score 1534.6
(4Core)
------------------------------------------------------------------------
Benchmark Run: 三 7月 08 2020 08:53:42 - 09:22:32
4 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 32025942.2 lps (10.0 s, 7 samples)
Double-Precision Whetstone 3962.6 MWIPS (12.7 s, 7 samples)
Execl Throughput 3824.2 lps (29.3 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 491631.9 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 129753.6 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1250754.0 KBps (30.0 s, 2 samples)
Pipe Throughput 665805.5 lps (10.0 s, 7 samples)
Pipe-based Context Switching 148134.3 lps (10.0 s, 7 samples)
Process Creation 7966.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 7667.6 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1907.6 lpm (60.0 s, 2 samples)
System Call Overhead 473467.9 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 32025942.2 2744.3
Double-Precision Whetstone 55.0 3962.6 720.5
Execl Throughput 43.0 3824.2 889.4
File Copy 1024 bufsize 2000 maxblocks 3960.0 491631.9 1241.5
File Copy 256 bufsize 500 maxblocks 1655.0 129753.6 784.0
File Copy 4096 bufsize 8000 maxblocks 5800.0 1250754.0 2156.5
Pipe Throughput 12440.0 665805.5 535.2
Pipe-based Context Switching 4000.0 148134.3 370.3
Process Creation 126.0 7966.5 632.3
Shell Scripts (1 concurrent) 42.4 7667.6 1808.4
Shell Scripts (8 concurrent) 6.0 1907.6 3179.4
System Call Overhead 15000.0 473467.9 315.6
========
System Benchmarks Index Score 985.5
------------------------------------------------------------------------
Benchmark Run: 三 7月 08 2020 09:22:32 - 09:51:06
4 CPUs in system; running 4 parallel copies of tests
Dhrystone 2 using register variables 70300275.9 lps (10.0 s, 7 samples)
Double-Precision Whetstone 15002.3 MWIPS (9.9 s, 7 samples)
Execl Throughput 7161.4 lps (29.6 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 671040.4 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 180148.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1889023.7 KBps (30.0 s, 2 samples)
Pipe Throughput 1584200.1 lps (10.0 s, 7 samples)
Pipe-based Context Switching 414864.3 lps (10.0 s, 7 samples)
Process Creation 22716.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 15331.4 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 2298.7 lpm (60.1 s, 2 samples)
System Call Overhead 1127861.2 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 70300275.9 6024.0
Double-Precision Whetstone 55.0 15002.3 2727.7
Execl Throughput 43.0 7161.4 1665.4
File Copy 1024 bufsize 2000 maxblocks 3960.0 671040.4 1694.5
File Copy 256 bufsize 500 maxblocks 1655.0 180148.0 1088.5
File Copy 4096 bufsize 8000 maxblocks 5800.0 1889023.7 3256.9
Pipe Throughput 12440.0 1584200.1 1273.5
Pipe-based Context Switching 4000.0 414864.3 1037.2
Process Creation 126.0 22716.5 1802.9
Shell Scripts (1 concurrent) 42.4 15331.4 3615.9
Shell Scripts (8 concurrent) 6.0 2298.7 3831.2
System Call Overhead 15000.0 1127861.2 751.9
========
System Benchmarks Index Score 1999.3
RISC 越来性能越高, 尤其是64 位ARM , 已经基本接近Intel I5 处理器了。
------------------------------------------------------------------------
Benchmark Run: 三 7月 08 2020 22:42:47 - 23:10:51
8 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 59242178.8 lps (10.0 s, 7 samples)
Double-Precision Whetstone 9979.4 MWIPS (9.9 s, 7 samples)
Execl Throughput 7289.9 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1635071.6 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 437862.6 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 4151450.9 KBps (30.0 s, 2 samples)
Pipe Throughput 2813203.2 lps (10.0 s, 7 samples)
Pipe-based Context Switching 318405.3 lps (10.0 s, 7 samples)
Process Creation 4945.9 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 4477.2 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 6702.0 lpm (60.0 s, 2 samples)
System Call Overhead 3552418.2 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 59242178.8 5076.5
Double-Precision Whetstone 55.0 9979.4 1814.4
Execl Throughput 43.0 7289.9 1695.3
File Copy 1024 bufsize 2000 maxblocks 3960.0 1635071.6 4129.0
File Copy 256 bufsize 500 maxblocks 1655.0 437862.6 2645.7
File Copy 4096 bufsize 8000 maxblocks 5800.0 4151450.9 7157.7
Pipe Throughput 12440.0 2813203.2 2261.4
Pipe-based Context Switching 4000.0 318405.3 796.0
Process Creation 126.0 4945.9 392.5
Shell Scripts (1 concurrent) 42.4 4477.2 1055.9
Shell Scripts (8 concurrent) 6.0 6702.0 11169.9
System Call Overhead 15000.0 3552418.2 2368.3
========
System Benchmarks Index Score 2318.3
------------------------------------------------------------------------
Benchmark Run: 三 7月 08 2020 23:10:51 - 23:39:06
8 CPUs in system; running 8 parallel copies of tests
Dhrystone 2 using register variables 375385264.3 lps (10.0 s, 7 samples)
Double-Precision Whetstone 71886.7 MWIPS (10.0 s, 7 samples)
Execl Throughput 38635.3 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1578407.8 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 382761.8 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 4270777.1 KBps (30.0 s, 2 samples)
Pipe Throughput 17717460.5 lps (10.0 s, 7 samples)
Pipe-based Context Switching 2086269.5 lps (10.0 s, 7 samples)
Process Creation 82232.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 63747.8 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 9222.6 lpm (60.0 s, 2 samples)
System Call Overhead 8811622.7 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 375385264.3 32166.7
Double-Precision Whetstone 55.0 71886.7 13070.3
Execl Throughput 43.0 38635.3 8985.0
File Copy 1024 bufsize 2000 maxblocks 3960.0 1578407.8 3985.9
File Copy 256 bufsize 500 maxblocks 1655.0 382761.8 2312.8
File Copy 4096 bufsize 8000 maxblocks 5800.0 4270777.1 7363.4
Pipe Throughput 12440.0 17717460.5 14242.3
Pipe-based Context Switching 4000.0 2086269.5 5215.7
Process Creation 126.0 82232.4 6526.4
Shell Scripts (1 concurrent) 42.4 63747.8 15034.9
Shell Scripts (8 concurrent) 6.0 9222.6 15371.0
System Call Overhead 15000.0 8811622.7 5874.4
========
System Benchmarks Index Score 8622.0