How can I model a very porous rock?
It looks like a noisy volume to mesh transformation might work for you.
Perhaps a modified &quot;Swiss Cheese&quot; geo_node setup (below) would work with a noisy displacement shader added. Best of luck :)

On second thought...
Here is a material nodes only answer:

It will take a pretty dense mesh:

But, It renders pretty quickly.