benchmark: Add remaining path benchmarks & optimize
As a follow-up to 0d15161c, this commit adds benchmarks for the rest of the path functions and also forces V8 to optimize the functions before starting the benchmark test (as suggested in a comment by @evanlucas).