Skip to content

examples: benchmark table with ansitable, --md and --rst - #59

Merged
petercorke merged 2 commits into
mainfrom
feat/benchmark-ansitable
Oct 12, 2026
Merged

petercorke merged 2 commits into
mainfrom
feat/benchmark-ansitable

Conversation

@petercorke

Copy link
Copy Markdown
Owner

The benchmark's table is now made with ansitable, which also writes MarkDown and reST, so there is one code path for all three outputs and no hand-written table printer.

  • --md is new: the table as MarkDown, to paste into a README. --rst is now ansitable's simple table (it was a hand-written list-table).
  • With --md or --rst only the table goes to standard output, so it can be redirected to a file; the description of the run (the version, the machine) goes to standard error.
  • The last column is headed "growth exponent".
  • ansitable is already installed with spatialmath-python, so there is nothing new to install.

Needed for a benchmark section in the README with the directed and undirected tables.

🤖 Generated with Claude Code

The table is made with ansitable, which writes MarkDown and reST as well as
the terminal table.  --md is new and --rst is now ansitable's simple table;
with either only the table is written to standard output.  The last column
is headed 'growth exponent'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.71%. Comparing base (849c456) to head (3a6789a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage   96.71%   96.71%           
=======================================
  Files           3        3           
  Lines        1371     1371           
=======================================
  Hits         1326     1326           
  Misses         45       45           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics -12 complexity · 0 duplication

Metric Results
Complexity -12
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit d33a0dc into main Oct 12, 2026
13 checks passed
@petercorke
petercorke deleted the feat/benchmark-ansitable branch October 12, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant