How do I calculate the computing capacity of my CPU or GPU?

Good morning, how can I know the characteristics of a CPU or GPU to efficiently run a model with 40 million parameters which only needs 16MB of memory to be stored. How can I calculate the minimum computing capacity to know that this 40 million model can be executed efficiently on any CPU or GPU?