package
0.11.0
Repository: https://github.com/cloudevents/sdk-go.git
Documentation: pkg.go.dev

# 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

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
Avoid DCE.

# Structs

No description provided by the author

# Type aliases

No description provided by the author