Commits

Christian Heimes committed 833c29f

drop stupid and confusing attempt to analyse the data with unappropriate tools

Comments (0)

Files changed (2)

 http://hg.python.org/features/pep-456/
 http://www.python.org/dev/peps/pep-0456/
 
-filename                                   base    changed diff%  bmean  cmean  var    stdev
-linux_athlonX2-2/benchmark_x64             22.29   22.82   2.4%   0.495  0.507  0.002  0.039
-linux_athlonX2-2/benchmark_x64_sso7        22.32   23.39   4.8%   0.496  0.520  0.006  0.077
-linux_athlonX2-2/benchmark_x86             23.86   24.30   1.8%   0.542  0.552  0.001  0.030
-linux_athlonX2-2/benchmark_x86_sso6        23.92   24.59   2.8%   0.544  0.559  0.002  0.045
-linux_athlonX2/benchmark_x64               22.71   23.34   2.7%   0.505  0.519  0.002  0.045
-linux_athlonX2/benchmark_x64_sso7          22.86   23.82   4.2%   0.508  0.529  0.004  0.060
-linux_athlonX2/benchmark_x86               24.59   25.11   2.1%   0.559  0.571  0.001  0.032
-linux_athlonX2/benchmark_x86_sso6          24.47   25.34   3.6%   0.556  0.576  0.003  0.051
-linux_core_i7/benchmark_x64                16.26   16.45   1.2%   0.361  0.366  0.000  0.019
-linux_core_i7/benchmark_x64_sso7           16.15   16.17   0.1%   0.359  0.359  0.001  0.031
-linux_core_i7/benchmark_x86                16.59   16.73   0.8%   0.377  0.380  0.001  0.025
-linux_core_i7/benchmark_x86_sso6           16.81   17.40   3.5%   0.382  0.396  0.002  0.042
-win7_core_i7_virtbox/benchmark_x64         26.80   27.41   2.3%   0.670  0.685  0.001  0.034
-win7_core_i7_virtbox/benchmark_x64_sso7    26.81   27.64   3.1%   0.670  0.691  0.003  0.055
-win7_core_i7_virtbox/benchmark_x86         28.07   28.47   1.4%   0.702  0.712  0.002  0.040
-
-
 x64:
   ELF 64-bit LSB executable, x86-64
 
   Intel Core i7-2860QM, 8 x 2.5 GHz (HT, turbo boost: 3.6 GHz),
   Ubuntu 13.04, GCC 4.7
 
+Windows:
+  VirtualBox, Windows 7 AMD64
 

analyze.py

-#!/usr/bin/env python3.3
-"""Trivial analyzer
-"""
-import os
-import csv
-import statistics
-
-def findcsv():
-    for root, dirs, files in os.walk("."):
-        if ".hg" in dirs:
-            dirs.remove(".hg")
-        for fname in files:
-            if fname.endswith(".csv"):
-                yield os.path.join(root, fname)
-
-def readcsv(fname):
-    with open(fname) as f:
-        reader = csv.DictReader(f)
-        for row in reader:
-            yield row["Benchmark"], float(row["Base"]), float(row["Changed"])
-
-def analyze(lines):
-    base = []
-    changed = []
-    diff = []
-    for n, b, c in lines:
-        base.append(b)
-        changed.append(c)
-        diff.append(c - b)
-    bsum = sum(base)
-    bmean = statistics.mean(base)
-    csum = sum(changed)
-    cmean = statistics.mean(changed)
-    var = statistics.variance(diff)
-    dev = statistics.stdev(diff)
-    return bsum, csum, (csum/bsum - 1)*100., bmean, cmean, var, dev
-
-def main():
-    print("filename                                   base    changed diff%  bmean  cmean  var    stdev")
-    fmt = "{:<40}  {: 1.2f}  {: 1.2f}  {: 1.1f}%  {: 1.3f} {: 1.3f}  {:1.3f}  {:1.3f}"
-    for fname in sorted(findcsv()):
-        lines = list(readcsv(fname))
-        name = fname.lstrip("./")[:-4]
-        print(fmt.format(name, *analyze(lines)))
-
-if __name__ == "__main__":
-    main()