node/benchmark/path
Ruben Bridgewater b882148999
path: improve path.resolve() performance when used as process.cwd()
`path.resolve()` and `path.resolve('.')` is frequently called as
alternative to process.cwd(). This minimized overhead for these
specific cases.

PR-URL: https://github.com/nodejs/node/pull/58362
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
2025-05-31 13:23:24 +02:00
..
basename-posix.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
basename-win32.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
dirname-posix.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
dirname-win32.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
extname-posix.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
extname-win32.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
format-posix.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
format-win32.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
isAbsolute-posix.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
isAbsolute-win32.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
join-posix.js path: improve path.resolve() performance when used as process.cwd() 2025-05-31 13:23:24 +02:00
join-win32.js path: improve path.resolve() performance when used as process.cwd() 2025-05-31 13:23:24 +02:00
makeLong-win32.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
normalize-posix.js path: improve path.resolve() performance when used as process.cwd() 2025-05-31 13:23:24 +02:00
normalize-win32.js path: improve path.resolve() performance when used as process.cwd() 2025-05-31 13:23:24 +02:00
parse-posix.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
parse-win32.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
relative-posix.js benchmark: add trailing commas in `benchmark/path` 2023-02-14 17:09:42 +00:00
relative-win32.js path: fix relative on Windows 2024-08-06 09:40:23 +00:00
resolve-posix.js path: improve path.resolve() performance when used as process.cwd() 2025-05-31 13:23:24 +02:00
resolve-win32.js path: improve path.resolve() performance when used as process.cwd() 2025-05-31 13:23:24 +02:00
toNamespacedPath-posix.js benchmark: add toNamespacedPath bench 2024-03-29 22:40:22 +00:00
toNamespacedPath-win32.js benchmark: add toNamespacedPath bench 2024-03-29 22:40:22 +00:00