aboutsummaryrefslogtreecommitdiff
path: root/etc/ratios.py
diff options
context:
space:
mode:
Diffstat (limited to 'etc/ratios.py')
-rwxr-xr-xetc/ratios.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/ratios.py b/etc/ratios.py
new file mode 100755
index 000000000..3748936f0
--- /dev/null
+++ b/etc/ratios.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python3
+
+curves = {}
+
+try:
+ while True:
+ line = input()
+ curve, variant, time = line.split()
+ if curve not in curves:
+ curves[curve] = {}
+ curves[curve][variant] = time
+except EOFError:
+ pass
+
+for curve, variants in curves.items():
+ if 'fiat_solinas64' in variants and 'gmpvar64' in variants:
+ print(curve, float(variants['gmpvar64']) / float(variants['fiat_solinas64']))
+ if 'fiat_solinas32' in variants and 'gmpvar32' in variants:
+ print(curve, float(variants['gmpvar32']) / float(variants['fiat_solinas32']))