-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Investigate performance impact of compiler flags #10608
Comments
There's also the The feature levels themselves are described here: https://gitlab.com/x86-psABIs/x86-64-ABI/-/blob/master/x86-64-ABI/low-level-sys-info.tex |
Thanks for the idea! I'm not sure if it makes sense to specify a concrete value (besides |
That's good to know, thanks for checking! I was wondering about the actual performance difference since the Moonbeam guys wrote that it gave them "good results"; it's a bummer you've found no increase. (Although maybe it just makes a difference when a significantly newer target is specified, instead of just slightly bumping the baseline?) |
The reference hardware is a |
#10777 Talks about |
Could we perhaps use the |
Yea I actually tried that here 😄 PS: I did not run the import with different profiles, so that could be done. But it takes quite long to run... |
Does not seem to make a difference as shown here: #10777 (comment) |
I wanted to comment on this issue since it seems that the production profile that uses The scores uses the benchmarks for BLAKE2 and SR25519, and the timing of the remark extrinsic. Are there other good extrinsics that can be benchmarked via the polkadot binary? |
If you're compiling for native then you can tweak other flags too. Default builds are not tuned for native. |
Ah, didn't know this was meant for only default build. Which flags would you use for tuning native then? |
I meant I believe flags in this repo don't impact compilation flags in project that use it as dependency. It is up to you to have whatever flags you want in your workspace's |
Yes possibly. But there have to be some settings for a production build and we cant optimize for every CPU.
So the default release binary should be good enough for most cases. High performance users have to build themselves anyway.
It prints all available ones if you call it with the |
Sure, I agree for a generic production profile, the current settings make a lot of sense of course. I thought this issue was meant to investigate performance of compiler flags in general, including specialised builds. My mistake...
Thanks, that convenient. Testing all that will take a long time, but might be interesting. |
We investigated the impact of the flags in order to find good default settings. |
Try out different compiler flags and check with the benchmarks for any substantial performance increase.
The LTO flag seems promising after being discussed and later on used in Polkadot: paritytech/polkadot#4311.
If you specifically know more flags that could help: please post them here.
The text was updated successfully, but these errors were encountered: