-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add protons back #318
Comments
I have incorporated the above benchmark into protons and running it with the latest version (5.1.0) yields good results: % node packages/protons-benchmark/dist/src/rpc.js
protons x 3,174,965 ops/sec ±0.40% (87 runs sampled)
protobufjs x 2,976,375 ops/sec ±1.72% (89 runs sampled)
Fastest is protons |
thanks @achingbrain , protons 5.1.0 is really faster than older versions however it's not very stable, see the statistics here #327 |
That's interesting, Also, how are you generating those stats, I can't see anything new in the benchmark folder? |
I just run the test in my local environment
I cannot think of anything that affect the benchmark but we can only be sure if we track the benchmark as part of CI steps. But I didn't see that same issue with protobufjs @achingbrain If you have a chance please run it multiple times in your environment too (using #327) to see if the issue happens or not |
Are you sure this is protons related? protons 7.x shipped six months ago, has 20-30k downloads a week, is used all over the libp2p/ipfs/helia stack and in a bunch of other projects and this hasn't been reported. |
@achingbrain I haven't used protons 7.x as it only supports |
src/message/rpc.proto is already |
Actually looking at this more, this is
In
TLDR for converting from
|
the memory leak was lodestar issue of not using correct NodeJS version, see ChainSafe/lodestar#5851 @achingbrain thanks for the migration guide. I updated to do you have any ideas? should I go with proto2 + |
created ipfs/protons#109 to track the performance issue of |
#327 is ready to test once lodestar migrated to latest libp2p ChainSafe/lodestar#5869 |
Motivation
In #310 we have to switch back to protobufjs because protons is 20x slower than protobufjs, we should add it back once the performance of protons is comparable or better than protobufjs
Description
Use the following benchmark (need to add
"@dapplion/benchmark"
asdevDependencies
):need to also add similar benchmark for
encode
The text was updated successfully, but these errors were encountered: