Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

build: adding benchmarking script#778

Merged
hongalex merged 9 commits into
googleapis:masterfrom
hongalex:benchwrapper
Oct 14, 2019
Merged

build: adding benchmarking script#778
hongalex merged 9 commits into
googleapis:masterfrom
hongalex:benchwrapper

Conversation

@hongalex

@hongalex hongalex commented Oct 9, 2019

Copy link
Copy Markdown
Member

This PR adds a gRPC server which wraps the pubsub client library, specifically testing streaming pull. A load testing framework can hit the gRPC server defined here to test the latency of our client library, which simply acks messages as they come in.

This requires the removal of grpc.OK as a retryable error, which is not currently used per #776 (comment).

For reference: benchmark wrapper for the storage lib: googleapis/nodejs-storage#788.

Fixes #776 🦕

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 9, 2019

@callmehiphop callmehiphop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, might need to run an npm run fix to appease the linter

Comment thread bin/benchwrapper.js
Comment thread bin/benchwrapper.js
Comment thread bin/benchwrapper.js Outdated
@codecov

codecov Bot commented Oct 9, 2019

Copy link
Copy Markdown

Codecov Report

Merging #778 into master will decrease coverage by 2.28%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #778      +/-   ##
==========================================
- Coverage   96.77%   94.49%   -2.29%     
==========================================
  Files          14       15       +1     
  Lines         869      890      +21     
  Branches      182      182              
==========================================
  Hits          841      841              
- Misses          7       28      +21     
  Partials       21       21
Impacted Files Coverage Δ
bin/benchwrapper.js 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc84c65...79d3e44. Read the comment docs.

@hongalex
hongalex requested a review from jeanbza October 9, 2019 23:22
@hongalex
hongalex requested a review from callmehiphop October 10, 2019 01:14
@hongalex hongalex changed the title test: add benchmarking wrapper build: adding benchmarking script Oct 14, 2019
@hongalex
hongalex merged commit 185f60f into googleapis:master Oct 14, 2019
@hongalex
hongalex deleted the benchwrapper branch October 14, 2019 20:01
feywind pushed a commit to feywind/nodejs-pubsub that referenced this pull request Nov 12, 2024
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/b205fd33-200c-4298-88b8-18b0d1c79a3e/targets

- [ ] To automatically regenerate this PR, check this box.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StreamingPull Retries on OK

4 participants