Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

(2.12) Optimised meta snapshot encoding whenGOEXPERIMENT=jsonv2 enabled#7360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
neilalexander wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromneil/jsonv2metasnap

Conversation

@neilalexander
Copy link
Member

With the old JSON library:

go test -v ./server -run=XXX -bench=BenchmarkJetStreamMetaSnapshot -benchtime=1xgoos: darwingoarch: arm64pkg: github.com/nats-io/nats-server/v2/servercpu: Apple M2 UltraBenchmarkJetStreamMetaSnapshotBenchmarkJetStreamMetaSnapshot/DefaultBenchmarkJetStreamMetaSnapshot/Default-24                1 466903916 ns/opBenchmarkJetStreamMetaSnapshot/AllUnsupportedBenchmarkJetStreamMetaSnapshot/AllUnsupported-24         1 267354584 ns/opPASSok  github.com/nats-io/nats-server/v2/server9.826s

With the new JSON library:

GOEXPERIMENT=jsonv2 go test -v ./server -run=XXX -bench=BenchmarkJetStreamMetaSnapshot -benchtime=1xgoos: darwingoarch: arm64pkg: github.com/nats-io/nats-server/v2/servercpu: Apple M2 UltraBenchmarkJetStreamMetaSnapshotBenchmarkJetStreamMetaSnapshot/DefaultBenchmarkJetStreamMetaSnapshot/Default-24                1 196555083 ns/opBenchmarkJetStreamMetaSnapshot/AllUnsupportedBenchmarkJetStreamMetaSnapshot/AllUnsupported-24         1 205764542 ns/opPASSok  github.com/nats-io/nats-server/v2/server9.154s

Signed-off-by: Neil Twiggneil@nats.io

@github-actionsgithub-actionsbot added the staleThis issue has had no activity in a while labelNov 25, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

staleThis issue has had no activity in a while

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@neilalexander

[8]ページ先頭

©2009-2025 Movatter.jp