Fix benchmarks
Merge request reports
Activity
assigned to @bgallois
mentioned in merge request !183 (merged)
- Resolved by Hugo Trentesaux
C'est super, comme ça ! Merci d'avoir publié ta MR par ce que j'en avais besoin pour benchmarker les quotas dans !183 (merged) et j'étais sur le point de le faire de mon côté ><. Je vais attendre que ce soit prêt et me mettre sur autre chose en attendant :)
added RN-runtime label
changed milestone to %runtime-700
Fixed the current benchmarks by:
- Added
BenchmarkSetupHandler
in the Palletsmembership
andidentity
(only required for benchmarks) to circumvent the coupling betweenwot
,distance
,membership
,certification
, andidentity
. - Introduced a function in the
distance
Pallet to enable external manipulation of the distance status, only necessary for benchmarks. - Implemented the
impl_benchmark_setup_handler macro
, containing the necessary logic to circumvent the coupling between the Pallets.
This merge request establishes the foundation for moving away from prepared identities required for benchmarks (using
gdev-benchmark
) by exposing special functions in specific Pallets and employing theimpl_benchmark_setup_handler
andBenchmarkSetupHandler
to bypass Pallet interdependencies during benchmarking.- Added
requested review from @HugoTrentesaux
C'est astucieux de faire ça dans un macro et avec des types avec
#[cfg(feature = "runtime-benchmarks")]
. On dirait que tu n'as pas perdu la main !!Je valide, merge, on mettra à jour les fichiers weights dans la MR qui fera tout tourner sur RPi. Faudra pas oublier de mettre à jour la date dans le fichier
file_header.txt
:Dmentioned in commit fe571d88