Skip to content

[add] gogo benchmark#9390

Open
7elven wants to merge 1 commit into
the-benchmarker:developfrom
7elven:codex/add-gogo-framework
Open

[add] gogo benchmark#9390
7elven wants to merge 1 commit into
the-benchmarker:developfrom
7elven:codex/add-gogo-framework

Conversation

@7elven

@7elven 7elven commented May 30, 2026

Copy link
Copy Markdown

What changed

  • Add a Go/gogo benchmark implementation for the required route contract:
    • GET / returns 200 with an empty body
    • GET /user/:id returns the route parameter
    • POST /user returns 200 with an empty body
  • Register a gogo Go engine so the benchmark generator can select a framework-specific Dockerfile.
  • Add a go/gogo.Dockerfile that enables cgo, installs native zlib build headers, builds with the gogo tag, and installs runtime libraries needed by the native binary.

Validation

  • gofmt -w go/gogo/main.go
  • git diff --cached --check
  • ruby -ryaml -e 'ARGV.each { |f| YAML.safe_load(File.read(f)); puts "ok #{f}" }' go/config.yaml go/gogo/config.yaml
  • CGO_ENABLED=1 go test -tags gogo ./... in the gogo source checkout
  • CGO_ENABLED=1 go run -mod=mod -tags gogo . from go/gogo, then checked:
    • GET / -> 200, empty body
    • GET /user/0 -> 200, body 0
    • POST /user -> 200, empty body

Notes

I could not run bundle exec rake config or a Docker build locally because this machine only has macOS system Ruby 2.6 for the repo's Ruby 3+ rake code and does not have Docker installed. The PR is opened as a draft so CI can validate the generated Docker path before review.

@7elven 7elven changed the title [codex] Add gogo benchmark [add] Add gogo benchmark May 30, 2026
@7elven 7elven changed the title [add] Add gogo benchmark [add] gogo benchmark May 30, 2026
@7elven 7elven marked this pull request as ready for review May 30, 2026 13:48
@7elven 7elven requested a review from waghanza as a code owner May 30, 2026 13:48
@7elven

7elven commented Jun 8, 2026

Copy link
Copy Markdown
Author

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