Skip to content

Feat: Add benchmark tests#83

Open
sumanjeet0012 wants to merge 1 commit into
ipld:masterfrom
sumanjeet0012:fix-71
Open

Feat: Add benchmark tests#83
sumanjeet0012 wants to merge 1 commit 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

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

1 participant