Skip to content

test: add benchmark tests for encode/decode operations#56

Open
sumanjeet0012 wants to merge 2 commits into
multiformats:masterfrom
sumanjeet0012:fix-issue-42
Open

test: add benchmark tests for encode/decode operations#56
sumanjeet0012 wants to merge 2 commits into
multiformats:masterfrom
sumanjeet0012:fix-issue-42

Conversation

@sumanjeet0012

Copy link
Copy Markdown
Contributor

Fixes #42

Description

This pull request adds benchmark tests for all encodings to establish performance baselines and help catch regressions. Similar to the benchmarks in go-multibase (BenchmarkEncode, BenchmarkDecode, BenchmarkRoundTrip), these benchmark tests run across all supported implementations.

Changes

  • Installed pytest-benchmark as a development dependency in pyproject.toml.
  • Added tests/test_benchmarks.py containing test_bench_encode, test_bench_decode, and test_bench_roundtrip parameterized across all ENCODINGS.

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 for encode/decode operations

1 participant