From a100a322fe414021a1e5878b910a84e9df37df61 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Fri, 12 Jun 2020 01:32:55 +0000 Subject: Add inital testing infrastructure Works for three-way WSS/cache size/execution time comparisons --- dis/original/gen_input.py | 113 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100755 dis/original/gen_input.py (limited to 'dis/original/gen_input.py') diff --git a/dis/original/gen_input.py b/dis/original/gen_input.py new file mode 100755 index 0000000..c7821b0 --- /dev/null +++ b/dis/original/gen_input.py @@ -0,0 +1,113 @@ +#!/usr/bin/python3 +##### +# Copyright 2020 Joshua Bakita +# +# This program generates input data for the DIS benchmark suite on stdout +# given a requested working set size. +##### + + +from ctypes import sizeof, c_double, c_int, c_short +from math import sqrt, floor +import sys # For argv and stderr + +USAGE = """Usage: {}