File: mkbench

package info (click to toggle)
tagcoll2 2.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,524 kB
  • ctags: 1,624
  • sloc: sh: 11,709; cpp: 6,201; makefile: 195; ansic: 74; 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