GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kislaykishore/custom-go-client-benchmark: To benchmark the read performance go-http client and go-grpc client.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

153 Commits
153 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
grpc_cloud_path_retry
grpc_cloud_path_retry
 
 
grpc_tcp_conn
grpc_tcp_conn
 
 
tail_latency
tail_latency
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
auth.go
auth.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 
pod.yaml
pod.yaml
 
 
run_script.sh
run_script.sh
 
 
tail_latency.dockerfile
tail_latency.dockerfile
 
 
tail_latency_ubuntu.dockerfile
tail_latency_ubuntu.dockerfile
 
 
user_agent_round_tripper.go
user_agent_round_tripper.go
 
 

Repository files navigation

custom-go-client-benchmark

To benchmark the read performance go-http client and go-grpc client.

Execution steps:

  1. Create the VM on which want to run the benchmark.
  2. Access VM's terminal via SSH.
  3. Install git and go if not installed already.
  4. Clone this repo and make the cloned directory as working directory.
  5. Please change the object prefix and suffix - here
  6. Execute this command: nohup ./execute_pb.sh <exp_number> > output.txt 2>&1 &
  7. The above command will generate two text files containing the latency for the respective client.
  8. Analyse the latency by various means, you may use python script to create histogram from the above generated files.
import sys
from matplotlib import pyplot as plt

print(sys.argv)

bins = []
for x in range(20, 100, 5):
    bins.append(x)

x = []
with open(sys.argv[1], 'r') as f:
    for line in f:
        x.append(float(line))

print("Average: ", (sum(x) / len(x)))

plt.hist(x, bins)

plt.show()

About

To benchmark the read performance go-http client and go-grpc client.

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.