Skip to content

Feat: Add benchmark tests - #83

Merged
acul71 merged 3 commits into
ipld:masterfrom
sumanjeet0012:fix-71
Sep 7, 2026
Merged

acul71 merged 3 commits into
ipld:masterfrom
sumanjeet0012:fix-71

Conversation

@sumanjeet0012

Copy link
Copy Markdown
Contributor

Closes #71

Description

This PR adds benchmark tests using pytest-benchmark to evaluate the performance of core py-cid operations. Previously, there were no benchmarks to track performance regressions or compare Python speeds with go-cid.

Changes

  • Added pytest-benchmark>=4.0.0 as a development dependency in pyproject.toml.
  • Added tests/test_benchmarks.py with benchmarks for:
    • cid.buffer
    • cid.encode
    • cid.prefix
    • prefix.sum
    • make_cid

@acul71
acul71 merged commit 1c91c64 into ipld:master Sep 7, 2026
24 checks passed
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.

No benchmark tests

2 participants