@
BXIA 发个 dmesg > boot.log 如何?
phoronix 确实略复杂。。。要不算个 pi 吧~~ 虽然 22 楼指出跑分没啥意义
http://www.numberworld.org/y-cruncher/#Download <10M, 不用编译,单线程和多线程范例:(相同位数重算前次结果会被覆盖需保存)
y-cruncher bench 25m -PF:none -TD:1
y-cruncher bench 1b -TD:64
{program} bench {size} [-PF:{framework}] [-TD:{tasks}]
The valid values for {size} are:
25m, 50m, 100m, 250m, 500m,
1b, 2.5b, 5b, 10b, 25b, 50b, 100b, 250b, 500b,
1t, 2.5t
Common Parameters:
These parameters are used by multiple components in y-cruncher.
Parallel Framework:
-PF:{framework}
(Examples: "-PF:none", "-PF:cppasync")
Use the specified parallel computing framework. The valid values are:
-PF:none Disable multi-threading and sequentialize all tasks.
-PF:spawn Spawn a thread for every task.
-PF:cppasync Use C++11 Async.
-PF:winpool Use the Windows Thread Pool. (only available on Windows)
-PF:cilk Use Cilk Plus work-stealing. (only available on Windows for AVX and AVX2)
Task Decomposition:
-TD:{tasks}
(Examples: "-TD:8", "-TD:12")
Run the operation using the desired level of task decomposition.
A larger number enables more parallelism, but at the cost of more
computational and memory overhead. For most systems, setting this equal to
the number of logical cores is ideal. But forcing it higher may reduce
load-imbalance.
Note that setting this value to 1 does not disable multi-threading since
some subroutines ignore the parameter and will decompose anyway. To get a
correct single-threaded benchmark, you need to also set the parallel
framework to "none".
Disable Multi-threading: -PF:none -TD:1
AWS T2.micro 上的测试结果: