http

command
v2.0.0-RC3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

README

E2E Benchmark to compare HTTP binding & HTTP transport

This benchmark aims to provide a comparison between package github.com/cloudevents/sdk-go/pkg/bindings/http and github.com/cloudevents/sdk-go/pkg/cloudevents/transport/http

Metrics

Test keys are:

  • Parallelism (Configuration of GOMAXPROCS value, from 1 to runtime.NumCPU())
  • Payload size in kb

Run and visualize results

Build
go build main.go
Run all tests
./main --bench=baseline > baseline.csv && ./main --bench=receiver-sender > receiver-sender.csv && ./main --bench=client > client.csv
Plot results

An example plot script is provided to plot parallelism - nanoseconds/ops, given the payload size:

gnuplot -c plot_parallelism_ns.gnuplot <payload_size_kb>

Example:

gnuplot -c plot_parallelism_ns.gnuplot 16

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL