Skip to content

Instantly share code, notes, and snippets.

@hasufell
Last active July 18, 2022 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasufell/cb46c979fedcef8a5d087ad193666e74 to your computer and use it in GitHub Desktop.
Save hasufell/cb46c979fedcef8a5d087ad193666e74 to your computer and use it in GitHub Desktop.
FilePath OsPath
Mean (ps) 2*Stdev (ps) Mean (ps) 2*Stdev (ps) Reduction in time
splitExtension (posix) 6679117 256374 289658 10560 95.66%
splitExtension (windows) 15670178 385626 4122614 95068 73.69%
takeExtension (posix) 1240205 73428 154950 9388 87.51%
takeExtension (windows) 8952655 471638 3906542 85590 56.36%
replaceExtension (posix) 904181 20518 95486 4274 89.44%
replaceExtension (windows) 908918 20652 162841 8994 82.08%
dropExtension (posix) 5672442 218998 238326 7522 95.80%
dropExtension (windows) 13255517 2355646 4039324 89310 69.53%
addExtension (posix) 935846 22354 96417 5202 89.70%
addExtension (windows) 956513 55268 231217 5496 75.83%
hasExtension (posix) 1087835 62374 174053 5244 84.00%
hasExtension (windows) 7991119 699436 4039213 96604 49.45%
splitExtensions (posix) 5607212 183066 265005 7454 95.27%
splitExtensions (windows) 16221111 347090 4271794 658614 73.67%
dropExtensions (posix) 5686183 323898 241582 15428 95.75%
dropExtensions (windows) 13401831 551890 4104407 162110 69.37%
takeExtensions (posix) 1118260 30280 121490 3084 89.14%
takeExtensions (windows) 11346138 393452 3826279 99174 66.28%
replaceExtensions (posix) 903456 20608 94969 2876 89.49%
replaceExtensions (windows) 909165 20492 163004 7788 82.07%
isExtensionOf (posix) 1158588 37448 131600 5182 88.64%
isExtensionOf (windows) 11424016 474820 3858273 104554 66.23%
stripExtension (posix) 1009285 20962 18005 452 98.22%
stripExtension (windows) 1013204 22768 31049 836 96.94%
splitFileName (posix) 3939295 84810 193321 6560 95.09%
splitFileName (windows) 8009551 166996 4056986 128852 49.35%
takeFileName (posix) 1104706 46632 172245 6750 84.41%
takeFileName (windows) 8105252 477910 4036538 83750 50.20%
replaceFileName (posix) 890903 20628 10542 1082 98.82%
replaceFileName (windows) 910473 20582 3800655 111030 -317.44%
dropFileName (posix) 2927075 89030 163407 10696 94.42%
dropFileName (windows) 2227097 56814 4031004 84172 -81.00%
takeBaseName (posix) 1304637 58088 321403 10830 75.36%
takeBaseName (windows) 19861154 351110 4353176 167324 78.08%
replaceBaseName (posix) 1115529 42868 137597 3116 87.67%
replaceBaseName (windows) 1124067 42080 371536 19088 66.95%
takeDirectory (posix) 5286106 167070 236294 8810 95.53%
takeDirectory (windows) 2217925 83600 7818742 259056 -252.53%
replaceDirectory (posix) 3566263 161040 1656344 63090 53.56%
replaceDirectory (windows) 3541485 219746 2018971 55612 42.99%
combine (posix) 901940 45704 10235 372 98.87%
combine (windows) 945339 20792 3793455 91930 -301.28%
splitPath (posix) 11883097 559076 2984974 205704 74.88%
splitPath (windows) 11463510 604902 11193278 437484 2.36%
joinPath (posix) 3968449 139048 764283 38130 80.74%
joinPath (windows) 907249 20660 64158125 1599786 -6971.72%
splitDirectories (posix) 15414318 393150 3738717 90426 75.75%
splitDirectories (windows) 13076441 514684 20476796 3239348 -56.59%
splitDrive (posix) 917070 20602 83837 3682 90.86%
splitDrive (windows) 901491 20916 3852265 156004 -327.32%
joinDrive (posix) 905024 20700 36540 1434 95.96%
joinDrive (windows) 931886 20712 70373 1822 92.45%
takeDrive (posix) 36987 1628 32795 784 11.33%
takeDrive (windows) 17973 662 3721549 83576 -20606.33%
hasDrive (posix) 18071 586 34505 2614 -90.94%
hasDrive (windows) 13676 366 3718904 83374 -27092.92%
dropDrive (posix) 906938 21260 47209 2090 94.79%
dropDrive (windows) 899081 20520 3659907 122336 -307.07%
isDrive (posix) 33609 1320 37156 1108 -10.55%
isDrive (windows) 14675 370 3646516 90946 -24748.49%
hasTrailingPathSeparator (posix) 680650 27902 8858 352 98.70%
hasTrailingPathSeparator (windows) 680731 20724 8987 344 98.68%
addTrailingPathSeparator (posix) 3269115 139852 40068 2416 98.77%
addTrailingPathSeparator (windows) 3247252 225990 73790 2676 97.73%
dropTrailingPathSeparator (posix) 3318923 128078 40135 3164 98.79%
dropTrailingPathSeparator (windows) 3360812 451244 73830 1536 97.80%
normalise (posix) 22280468 933042 6999258 197328 68.59%
normalise (windows) 15990811 342812 81611714 3197486 -410.37%
equalFilePath (posix) 23154393 777734 7650431 368148 66.96%
equalFilePath (windows) 17149096 686204 90506960 3017662 -427.77%
makeRelative (posix) 24108645 803494 7738906 221986 67.90%
makeRelative (windows) 43385829 1961764 94270447 2952804 -117.28%
isRelative (posix) 34863 1388 43146 2770 -23.76%
isRelative (windows) 13586 336 3840490 120880 -28168.00%
isAbsolute (posix) 34999 1134 43333 1728 -23.81%
isAbsolute (windows) 14102 352 3839176 99412 -27124.34%
isValid (posix) 2299306 84744 15841 326 99.31%
isValid (windows) 2311180 47434 75375154 2626680 -3161.33%
makeValid (posix) 4726236 196788 3066221 93132 35.12%
makeValid (windows) 4768742 170510 133605017 3356690 -2701.68%
splitSearchPath (posix) 8813499 328254 1727809 89374 80.40%
splitSearchPath (windows) 8872015 192184 6188949 175390 30.24%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment