In general, corrosion rate depends on too many factors. Which acid or base, which concentration, which temperature? Which other chemical species are present? Is there galvanic corrosion present? Is there a voltage applied, and which voltage? And so on.
How do you even you measure the "rate" of corrosion: depth per unit time, mass per unit time, other? Both may depend on surface geometry, defects, etc. If you measure as mass per unit time, that depends on how finely the material is divided, since corrosion occurs at the surface. More finely divided -> more surface. Depth per unit time may not even be uniform across the whole sample.
This applies not only to aluminum.
Assuming you keep all other factors the same, you still need to specify at least the type of acid or base, and their concentration. For example, aluminum won't dissolve in concentrated nitric acid.