File: maketablejmh.sh

package info (click to toggle)
libdsiutils-java 2.7.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,012 kB
  • sloc: java: 34,189; xml: 531; makefile: 51; sh: 47
file content (15 lines) | stat: -rwxr-xr-x 594 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

export LABEL=("nextLong()" "nextDouble()" "nextInt(100000)" "nextInt(2<sup>30</sup>+1)")
export i=0

for m in nextLong nextDouble nextInt100000 nextInt2301; do
	echo " * <TR>"
	echo " * <TH STYLE='text-align: left'><code>${LABEL[$i]}</code>"
	let i=i+1
	for r in Random ThreadLocalRandom SplittableRandom SplitMix64 XoRoShiRo128PlusPlus XoRoShiRo128StarStar XoRoShiRo128Plus XoShiRo256PlusPlus XoShiRo256StarStar XoShiRo256Plus XorShift1024StarPhi; do
		v=$(grep ^Benchmark$r.$m\  $1 | tr -s ' ' | cut -d' ' -f4)
		echo " * <TD STYLE='text-align: right'>$v"
	done
	echo " * "
done