I'd prefer that this not be Firefox-specific. Can you change it so that instead of specifying a browser profile on the server's command line, you just specify a string of arguments to forward on to the browser? I'm imagining something like:
./latency-benchmark --browser="foo" --browser-arguments="-bar -baz=quux"