#!/bin/rc
switch($cputype){
case arm
O=5
case amd64
O=6
case arm64
O=7
case 386
O=8
case power64
O=9
case mips
O=v
case power
O=q
case sparc
O=k
}
cat '#P/cputype'
echo $NPROC
for(i in $O.lpingpong $O.sempingpong)
time $i
echo
for(p in $O.chantestsem $O.chantest)
for(i in 1 2 4 8 16)
time $p -O0 -R1 -T^$i>/dev/null
|