From d4aa4d51a4d31511d3565a9a09cb91d97493157b Mon Sep 17 00:00:00 2001 From: scivision Date: Tue, 14 Nov 2023 09:31:32 -0500 Subject: [PATCH] simplify --- .github/workflows/ci.yml | 2 -- Matmul.py | 2 +- Pisum.py | 3 ++- README.md | 12 ++++++------ src/python_performance/__init__.py => benchmark.py | 0 {tests => gfx}/hpchypot.png | Bin {tests => gfx}/pisum_gcc_unplug-2019-01.png | Bin {tests => gfx}/pisum_gcc_unplug.png | Bin {tests => gfx}/pisum_intel_9750.png | Bin {tests => gfx}/pisum_windows_9750H.png | Bin {tests => gfx}/py27hypot.png | Bin {tests => gfx}/py35hypot.png | Bin {tests => gfx}/py36hypot.png | Bin .../tests/test_all.py => test_all.py | 0 14 files changed, 9 insertions(+), 10 deletions(-) rename src/python_performance/__init__.py => benchmark.py (100%) rename {tests => gfx}/hpchypot.png (100%) rename {tests => gfx}/pisum_gcc_unplug-2019-01.png (100%) rename {tests => gfx}/pisum_gcc_unplug.png (100%) rename {tests => gfx}/pisum_intel_9750.png (100%) rename {tests => gfx}/pisum_windows_9750H.png (100%) rename {tests => gfx}/py27hypot.png (100%) rename {tests => gfx}/py35hypot.png (100%) rename {tests => gfx}/py36hypot.png (100%) rename src/python_performance/tests/test_all.py => test_all.py (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aef3750..28cbd8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,5 +29,3 @@ jobs: - run: flake8 - run: mypy - - - run: pytest diff --git a/Matmul.py b/Matmul.py index 24ee4bc..77a3f11 100755 --- a/Matmul.py +++ b/Matmul.py @@ -4,7 +4,7 @@ import typing as T import shutil -import python_performance as pb +import benchmark as pb try: from matplotlib.pyplot import figure, show diff --git a/Pisum.py b/Pisum.py index fccaddd..8f27c67 100755 --- a/Pisum.py +++ b/Pisum.py @@ -6,9 +6,10 @@ import sys import platform import shutil + import numpy as np -import python_performance as pb +import benchmark as pb try: from matplotlib.pyplot import figure, show diff --git a/README.md b/README.md index 53d6081..114deef 100644 --- a/README.md +++ b/README.md @@ -33,11 +33,11 @@ Iterative benchmarks, here using the pisum algorithm: python Pisum.py ``` -![Pi (Machin) benchmark Windows 10 Intel 19.1](tests/pisum_intel_9750.png) +![Pi (Machin) benchmark Windows 10 Intel 19.1](./gfx/pisum_intel_9750.png) -![Pi (Machin) benchmark Windows 10](tests/pisum_windows_9750H.png) +![Pi (Machin) benchmark Windows 10](./gfx/pisum_windows_9750H.png) -![Pi (Machin) benchmark](tests/pisum_gcc_unplug-2019-01.png) +![Pi (Machin) benchmark](./gfx/pisum_gcc_unplug-2019-01.png) Matrix Multiplication benchmarks: @@ -62,11 +62,11 @@ Execute the Hypot speed test by: ./RunHypot.py -![Python 3.6 hypot() vs rsq()](tests/py36hypot.png) +![Python 3.6 hypot() vs rsq()](.gfx/py36hypot.png) -![Python 2.7 hypot() vs rsq()](tests/py27hypot.png) +![Python 2.7 hypot() vs rsq()](./gfx/py27hypot.png) -![Python 3.5 hypot() vs rsq()](tests/py35hypot.png) +![Python 3.5 hypot() vs rsq()](./gfx/py35hypot.png) ## Notes diff --git a/src/python_performance/__init__.py b/benchmark.py similarity index 100% rename from src/python_performance/__init__.py rename to benchmark.py diff --git a/tests/hpchypot.png b/gfx/hpchypot.png similarity index 100% rename from tests/hpchypot.png rename to gfx/hpchypot.png diff --git a/tests/pisum_gcc_unplug-2019-01.png b/gfx/pisum_gcc_unplug-2019-01.png similarity index 100% rename from tests/pisum_gcc_unplug-2019-01.png rename to gfx/pisum_gcc_unplug-2019-01.png diff --git a/tests/pisum_gcc_unplug.png b/gfx/pisum_gcc_unplug.png similarity index 100% rename from tests/pisum_gcc_unplug.png rename to gfx/pisum_gcc_unplug.png diff --git a/tests/pisum_intel_9750.png b/gfx/pisum_intel_9750.png similarity index 100% rename from tests/pisum_intel_9750.png rename to gfx/pisum_intel_9750.png diff --git a/tests/pisum_windows_9750H.png b/gfx/pisum_windows_9750H.png similarity index 100% rename from tests/pisum_windows_9750H.png rename to gfx/pisum_windows_9750H.png diff --git a/tests/py27hypot.png b/gfx/py27hypot.png similarity index 100% rename from tests/py27hypot.png rename to gfx/py27hypot.png diff --git a/tests/py35hypot.png b/gfx/py35hypot.png similarity index 100% rename from tests/py35hypot.png rename to gfx/py35hypot.png diff --git a/tests/py36hypot.png b/gfx/py36hypot.png similarity index 100% rename from tests/py36hypot.png rename to gfx/py36hypot.png diff --git a/src/python_performance/tests/test_all.py b/test_all.py similarity index 100% rename from src/python_performance/tests/test_all.py rename to test_all.py