I'm wondering about weights. The docs are quite outdated here and I do not understand what is going on. I've managed to create benchmarks and generate a weight.rs.
https://github.com/paritytech/substrate/blob/master/frame/examples/basic/src/weights.rs has SubstrateWeight and WeightInfo whereas it seems that the tutorial suggest to write WeightInfo somewhat as a copy & paste from SubstrateWeight in what looks to me like a lot of redundant code, because they only differ in the database weights they assume. There is no explanation whatsoever.
The weight.rs is generated as WeightInfo which seems to be required to be renamed to SubstrateWeight in order for things to work.
This feels cumbersome. Can someone share some light on how this is all meant