File: mkbench

package info (click to toggle)
tagcoll 1.6.3-2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,500 kB
  • ctags: 2,062
  • sloc: cpp: 10,930; sh: 8,892; makefile: 201; lex: 54; yacc: 27
file content (17 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

COMP=${COMP:-'meld'}

case "$1" in 
	run)
		bench/benchmark | tee bench-`hostname`-`date +'%Y%m%d-%H:%M:%S'`.txt
		;;
	comp|compare)
		$COMP $(ls bench-$(hostname)-* | sort | tail -2)
		;;
	*)
		echo "Usage: $0 {run|compare}" >&2
		;;
esac

exit 0