Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add node.Load()/LoadAll() to support concurrency #124

Merged
merged 2 commits into from
Oct 28, 2021
Merged

Conversation

AsterDY
Copy link
Collaborator

@AsterDY AsterDY commented Oct 28, 2021

benchmark

oos: linux
goarch: amd64
pkg: github.com/bytedance/sonic/ast
cpu: Intel(R) Xeon(R) Platinum 8260 CPU @ 2.40GHz
BenchmarkLoadNode/Interface()-8         	  105940	     10327 ns/op	1261.08 MB/s	   25507 B/op	      84 allocs/op
BenchmarkLoadNode/LoadAll()-8           	  181358	      6513 ns/op	1999.49 MB/s	   17595 B/op	      20 allocs/op
BenchmarkLoadNode/InterfaceUseNode()-8  	  407199	      2641 ns/op	4931.49 MB/s	    4668 B/op	       5 allocs/op
BenchmarkLoadNode/Load()-8              	  559974	      1987 ns/op	6554.53 MB/s	    2660 B/op	       3 allocs/op

Change-Id: Ic70b61c720a10d16cecc1f3d7c131d81ff6d4071
@AsterDY AsterDY merged commit 3a25fca into main Oct 28, 2021
@AsterDY AsterDY deleted the feat/load_all branch October 28, 2021 09:56
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