Commit 02a3556
README: add Performance section with the lapackdrivers timing plot
The lapackdrivers benchmark example was already producing a timing
figure (`figure1_latest.pdf`) but it lived in nobody's mental model:
no README reference, file name suggesting "draft," cwd-relative output
path so it landed wherever the user happened to invoke the script.
This commit gives the figure a proper home:
- examples/lapackdrivers_example.py now saves to project root via
a `__file__`-anchored path (regardless of where the example was
invoked from), and produces both `lapack_timings.png` (150 dpi,
bbox tight, README artifact) and `lapack_timings.pdf` (vector
quality, for printing or reuse). The historical
`figure1_latest.pdf` name is gone.
- lapack_timings.png is committed at the project root as the
canonical README image. The .pdf sibling is gitignored — it is
just a regenerable build product. The legacy `figure1_latest.pdf`
name is also gitignored, in case stale copies linger in working
trees.
- README.md gains a "## Performance" section between Features and
Examples, embedding the PNG with a two-paragraph caption that
explains what the lines mean (parallel batched LAPACK drivers
vs. a Python loop over numpy.linalg.solve, log–log scale), what
the takeaway is (most savings come from staying inside nogil
Cython for the loop and from OpenMP across independent problems),
and how to regenerate the figure on the reader's own machine.
Also a short cross-reference from the Speed bullet under
Features pointing at the new section.
The figure is reproducible across runs and machines now that the
example seeds the legacy global RNG with `np.random.seed(42)`
(committed in the previous patch).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent aa2b906 commit 02a3556
4 files changed
Lines changed: 38 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
84 | 102 | | |
85 | 103 | | |
86 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| |||
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
340 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
341 | 351 | | |
342 | 352 | | |
343 | 353 | | |
| |||
Loading
0 commit comments