"xvfb-run firefox" and "firefox -headless" should be functionally equivalent. But I would still be interested in performance comparison with numbers.
I meant equivalent from the point of view of the user who wants to run tests, not on the way they work internally.