Skip to content

Conversation

@guan404ming
Copy link
Member

@guan404ming guan404ming commented Jan 16, 2026

Purpose of PR

  • Supports amplitude (default) and basis encoding methods in benchmark
  • All 5 benchmark scripts updated: latency, throughput, e2e, numpy_io, latency_pytorch (e2e needs a follow to support streaming)

Related Issues or PRs

Changes Made

  • Bug fix
  • New feature
  • Refactoring
  • Documentation
  • Test
  • CI/CD pipeline
  • Other

Breaking Changes

  • Yes
  • No

Checklist

  • Added or updated unit tests for all changes
  • Added or updated documentation for all changes
  • Successfully built and ran all unit tests or manual tests locally
  • PR title follows "MAHOUT-XXX: Brief Description" format (if related to an issue)
  • Code follows ASF guidelines

all_data = np.random.randint(0, dim, size=(n_samples, 1)).astype(np.float64)
else:
# Amplitude encoding: full vectors
all_data = np.random.rand(n_samples, dim).astype(np.float64)
Copy link
Member

Choose a reason for hiding this comment

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

Can this be a shared utility function that can be used on multiple benchmark?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I've updated.

@guan404ming guan404ming force-pushed the add-encoding-method-param-benchmarks branch from 5211a2b to 6c9118c Compare January 16, 2026 14:01
@guan404ming
Copy link
Member Author

cc @400Ping

@rich7420
Copy link
Contributor

Thanks for the patch @guan404ming !
I think we should update qdp/qdp-python/benchmark/README.md as well. I'll try run all benchmarks later.

@guan404ming guan404ming force-pushed the add-encoding-method-param-benchmarks branch from fcd6999 to 1f53d69 Compare January 17, 2026 14:03
@guan404ming
Copy link
Member Author

I think we should update qdp/qdp-python/benchmark/README.md as well. I'll try run all benchmarks later.

Nice catch, I've updated. Thanks!

Copy link
Member

@ryankert01 ryankert01 left a comment

Choose a reason for hiding this comment

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

Overall lg, cc @rich7420 @400Ping

Copy link
Contributor

@400Ping 400Ping left a comment

Choose a reason for hiding this comment

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

Overall LGTM

@guan404ming
Copy link
Member Author

Going to merge this. Feel free to open pr to refine this. Thanks!

@guan404ming guan404ming merged commit ccfc116 into apache:main Jan 17, 2026
4 checks passed
@guan404ming guan404ming deleted the add-encoding-method-param-benchmarks branch January 17, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants