Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 257e97a

Browse files
committed
updated performance tests
1 parent c269130 commit 257e97a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

doc/articles/npy-opt.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from typing import NamedTuple
66
from itertools import repeat
77

8-
import automap
9-
from automap import AutoMap
10-
from automap import FrozenAutoMap
8+
import arraymap
9+
from arraymap import AutoMap
10+
from arraymap import FrozenAutoMap
1111

1212
import matplotlib.pyplot as plt
1313
import numpy as np
@@ -386,7 +386,7 @@ def get_array(size: int) -> np.ndarray:
386386
def get_versions() -> str:
387387
import platform
388388

389-
return f"OS: {platform.system()} / AutoMap / NumPy: {np.__version__}\n"
389+
return f"OS: {platform.system()} / ArrayMap: {arraymap.__version__} / NumPy: {np.__version__}\n"
390390

391391

392392
CLS_FF = (
@@ -402,7 +402,7 @@ def get_versions() -> str:
402402
FF_ORDER = [f.NAME for f in sorted(CLS_FF, key=lambda ff: ff.SORT)]
403403

404404
# -------------------------------------------------------------------------------
405-
NUMBER = 50
405+
NUMBER = 2
406406

407407
from itertools import product
408408

@@ -476,7 +476,7 @@ def plot_performance(frame, suffix: str = ""):
476476
fig.text(0.05, 0.96, f"AutoMap {suffix.title()}: {NUMBER} Iterations", fontsize=10)
477477
fig.text(0.05, 0.90, get_versions(), fontsize=6)
478478

479-
fp = f"/tmp/automap-{suffix}.png"
479+
fp = f"/tmp/arraymap-{suffix}.png"
480480
plt.subplots_adjust(
481481
left=0.075,
482482
bottom=0.05,

0 commit comments

Comments
 (0)