source: Deliverables/D2.3/8051/tests/benchs/meantime.sh @ 453

Last change on this file since 453 was 453, checked in by ayache, 10 years ago

Import of the Paris's sources.

  • Property svn:executable set to *
File size: 219 bytes
Line 
1#!/usr/bin/env bash
2
3RUNS=2
4COUNT=$RUNS
5VAL=0.
6while [ $COUNT -gt 0 ]; do
7  R=`/usr/bin/time -f %U $* 2>&1 | tail -n1`
8  VAL=`echo "print $VAL + $R" | bc`
9  COUNT=$(($COUNT - 1))
10done
11echo "print $VAL / $RUNS" | python
Note: See TracBrowser for help on using the repository browser.