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

[draft] experiments of using proto and add microbenchmarks #123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Alva8756
Copy link
Contributor

@Alva8756 Alva8756 commented Nov 19, 2024

See https://equinixinc-my.sharepoint.com/:w:/g/personal/alzhang_equinix_com/EdFI-lbJBnRGovwAzYrGuR4BAh0Zvyb-ig-fhWnLK_tU2g?e=zSXmAe

This is an experiments of using proto as GetComponents response payload.

The microbenchmark creates a simple response with 5 components. It creates a local client sending request against local server.

Micro-benchmark result:

BenchmarkGetComponentsJson
p50 latency: 3.412042ms
p90 latency: 4.685958ms
p99 latency: 19.750375ms

BenchmarkGetComponentsProto
p50 latency: 3.226333ms
p90 latency: 4.581083ms
p99 latency: 18.503042ms

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.

1 participant