Just check yourself. Canonical and Mozilla spent a lot of time optimizing snaps and firefox inside specifically. The last time I run tests was about two months ago and snapped ff performed better than flatpak and deb versions. The main reason for that is more optimal compilation flags they were able to use in a snapped environment.