Add more benchmark tests to path/posix

Benchmark testing `is_ancestor_of` and `pop`
Fix and replace benchmark tests
auto merge of #11137 : g3xzh/rust/benchm, r=cmr

Benchmark testing `is_ancestor_of` and `pop`

ref: https://github.com/mozilla/rust/issues/9694