Plan 9 from Bell Labs’s /usr/web/sources/contrib/quanstro/locktest/alltests

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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 

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].