diff options
-rwxr-xr-x | test/get_perf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/get_perf.py b/test/get_perf.py index c3e94cf..1570cac 100755 --- a/test/get_perf.py +++ b/test/get_perf.py @@ -24,14 +24,14 @@ def test_perf(d, test_pat, test_type): total_insts += insts total_msecs += msecs - Kips = total_insts/total_msecs + Kips = total_insts/total_msecs if total_msecs != 0 else float("nan") print("Average {0} performance: {1} Kips".format(test_type, Kips)) def get_test_pat(iset, emode): return "rv64{0}-{1}-*.cout".format(iset, emode) if __name__ == '__main__': - test_dir = os.path.join(os.path.dirname(__file__), "tests") + test_dir = os.path.join(os.path.dirname(__file__), "riscv-tests") for mode in ["p", "v"]: test_perf(test_dir, get_test_pat("ui", mode), "ui-{0}".format(mode)) test_perf(test_dir, get_test_pat("um", mode), "um-{0}".format(mode)) |