Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring for export to stdout #349

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Refactoring for export to stdout #349

merged 3 commits into from
Feb 11, 2025

Conversation

kayjan
Copy link
Owner

@kayjan kayjan commented Feb 11, 2025

Description

Deduplicate code by shifting common logic into the constants class

Testing

Additional notes

Checklist

I have read through the contributing guidelines and ensured that

  • I have added a descriptive title for this pull request.
  • I have followed the convention and standards, and my code is checked for style and correctness.
  • I have added test cases, and unit tests pass with 100% code coverage.
  • I have updated the documentation and code docstrings.

Checklist (for reviewer)

  • I have added label (breaking / enhancement / bug / documentation) to this pull request, if applicable.
  • I will ensure this change is captured in the CHANGELOG.md file.

@kayjan kayjan added the enhancement New feature or request label Feb 11, 2025
Copy link
Contributor

Code Coverage

Package Line Rate Branch Rate Complexity Health
bigtree 100% 100% 0
bigtree.binarytree 100% 100% 0
bigtree.dag 100% 100% 0
bigtree.node 100% 100% 0
bigtree.tree 100% 100% 0
bigtree.tree.construct 100% 100% 0
bigtree.tree.export 100% 100% 0
bigtree.utils 100% 100% 0
Summary 100% (2564 / 2564) 100% (1046 / 1046) 0

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 64ca6ea Previous: 00c326c Ratio
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_10 12105.416387330975 iter/sec (stddev: 0.00004043498204301276) 13726.119982815411 iter/sec (stddev: 0.000026328413890587953) 1.13
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_100 628.6221009008209 iter/sec (stddev: 0.000008056279687687299) 676.1969412772996 iter/sec (stddev: 0.00002568013839321511) 1.08
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_1000 11.05531910432914 iter/sec (stddev: 0.003890069326425072) 11.112607565714331 iter/sec (stddev: 0.0012603852398416094) 1.01
tests/node/test_node_benchmark.py::test_node_benchmark_width_2_depth_10 64.88155682024012 iter/sec (stddev: 0.002897015563281243) 69.43627772557072 iter/sec (stddev: 0.0030625891415808535) 1.07
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_10_no_assertions 21532.164209978902 iter/sec (stddev: 9.712111626732872e-7) 22144.323413402075 iter/sec (stddev: 0.000002012708741695035) 1.03
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_100_no_assertions 1669.1613674293271 iter/sec (stddev: 0.00003573385331887947) 1697.9593500049123 iter/sec (stddev: 0.000033651423849322305) 1.02
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_1000_no_assertions 115.97033986657233 iter/sec (stddev: 0.00376738863334529) 126.20499503847806 iter/sec (stddev: 0.002757013370355466) 1.09
tests/node/test_node_benchmark.py::test_node_benchmark_width_2_depth_10_no_assertions 90.48385544978302 iter/sec (stddev: 0.003511580098035559) 98.64701476080683 iter/sec (stddev: 0.002493750373940828) 1.09

This comment was automatically generated by workflow using github-action-benchmark.

@kayjan kayjan merged commit 37443be into master Feb 11, 2025
6 checks passed
@kayjan kayjan deleted the refactor/export branch February 11, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant