Skip to content

Improve hammer performance#362

Merged
AlCutter merged 1 commit into
transparency-dev:mainfrom
AlCutter:fix_hammer
Jun 16, 2025
Merged

Improve hammer performance#362
AlCutter merged 1 commit into
transparency-dev:mainfrom
AlCutter:fix_hammer

Conversation

@AlCutter

Copy link
Copy Markdown
Collaborator

This PR addresses the same connection-reuse issue in the upstream Tessera hammer described in transparency-dev/tessera#689 in the locally tweaked fork.

See transparency-dev/tessera#690.

Comment thread internal/hammer/hammer.go Outdated
Comment thread internal/hammer/hammer.go Outdated
Comment thread internal/hammer/hammer.go

func httpWriter(u *url.URL, hc *http.Client, bearerToken string) loadtest.LeafWriter {
cTrace := &httptrace.ClientTrace{
GotConn: func(info httptrace.GotConnInfo) { klog.Infof("connection established %#v", info) },

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.

Should the log level be 2 here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I could explicitly add that, but it's effectively already the case due to the if klog.V(2).Enabled { // add the tracer } below.

@AlCutter
AlCutter merged commit e37f5a4 into transparency-dev:main Jun 16, 2025
7 checks passed
@AlCutter
AlCutter deleted the fix_hammer branch June 16, 2025 15:11
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.

2 participants