Skip to content

Conversation

@songgaoye
Copy link
Contributor

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

@songgaoye songgaoye marked this pull request as ready for review November 11, 2025 09:00
@songgaoye songgaoye requested a review from a team as a code owner November 11, 2025 09:00
@songgaoye songgaoye requested review from randy-cro and thomas-nguy and removed request for a team November 11, 2025 09:00
@github-actions

This comment has been minimized.

@songgaoye
Copy link
Contributor Author

songgaoye commented Nov 12, 2025

benchmark in branch song/mutex_tree_cahce

songgaoye@CNMAC0824 memiavl % go test -bench BenchmarkTreeGet
goos: darwin
goarch: arm64
pkg: github.com/crypto-org-chain/cronos-store/memiavl
cpu: Apple M4 Pro
BenchmarkTreeGet/cache=0-14     19776036                59.26 ns/op
BenchmarkTreeGet/cache=1024-14   5971375               200.2 ns/op
BenchmarkTreeGet/cache=16384-14                  5623659               210.6 ns/op
BenchmarkTreeGetParallel/cache=0-14             206333624                5.879 ns/op
BenchmarkTreeGetParallel/cache=1024-14           4949983               263.7 ns/op
BenchmarkTreeGetParallel/cache=16384-14          4774525               251.3 ns/op
PASS
ok      github.com/crypto-org-chain/cronos-store/memiavl        12.449s
songgaoye@CNMAC0824 memiavl % go test -bench BenchmarkTreeSet        
goos: darwin
goarch: arm64
pkg: github.com/crypto-org-chain/cronos-store/memiavl
cpu: Apple M4 Pro
BenchmarkTreeSet/cache=0-14             11345952               103.2 ns/op
BenchmarkTreeSet/cache=1024-14           5115376               232.0 ns/op
BenchmarkTreeSet/cache=16384-14          7162220               163.6 ns/op

@songgaoye
Copy link
Contributor Author

songgaoye commented Nov 12, 2025

benchmark in song/shared_cache

songgaoye@CNMAC0824 memiavl %  go test -bench BenchmarkTreeGet
goos: darwin
goarch: arm64
pkg: github.com/crypto-org-chain/cronos-store/memiavl
cpu: Apple M4 Pro
BenchmarkTreeGet/cache=0-14     18724959                60.06 ns/op
BenchmarkTreeGet/cache=1024-14   5373397               236.2 ns/op
BenchmarkTreeGet/cache=16384-14                  5145981               233.0 ns/op
BenchmarkTreeGetParallel/cache=0-14             204248307                5.863 ns/op
BenchmarkTreeGetParallel/cache=1024-14          11717190               101.8 ns/op
BenchmarkTreeGetParallel/cache=16384-14         11699887               102.4 ns/op
PASS
ok      github.com/crypto-org-chain/cronos-store/memiavl        12.279s
songgaoye@CNMAC0824 memiavl %  go test -bench BenchmarkTreeSet
goos: darwin
goarch: arm64
pkg: github.com/crypto-org-chain/cronos-store/memiavl
cpu: Apple M4 Pro
BenchmarkTreeSet/cache=0-14             10018656               104.5 ns/op
BenchmarkTreeSet/cache=1024-14           4913354               241.9 ns/op
BenchmarkTreeSet/cache=16384-14          6676912               173.9 ns/op
PASS
ok      github.com/crypto-org-chain/cronos-store/memiavl        6.870s

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