I may have some of the details wrong.
https://source.chromium.org/chromium/_/chromium/v8/v8.git/+/...
Now that you raised it however, even if the system call used to be fast, Firefox is making an extremely high number of calls to that sytem call, and there's always going to be some overhead to that. There are almost certainly ways that Firefox could reduce the number of calls it needs to make.