source: tools/stat.py @ b7170a64

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since b7170a64 was b7170a64, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Updated the creation and ctxswitch benchmark to all be consistent and flexible

  • Property mode set to 100755
File size: 477 bytes
RevLine 
[bfd15e8]1#!/usr/bin/python
2
3import sys
4import numpy
5
6if len(sys.argv) != 2 :
7        sys.exit("Expected file name as only argument")
8
9try:
10        with open(sys.argv[1]) as f:
11                content = f.readlines()
12                content = [x.strip() for x in content]
13                content = [int(x) for x in content]
14                content.remove(max(content))
15                content.remove(min(content))
16                print "median {0} avg {1} stddev {2}".format( numpy.median(content), numpy.mean(content), numpy.std(content) )
17
18
19except IOError as e:
20        sys.exit(e.strerror)
Note: See TracBrowser for help on using the repository browser.