I have a script in PHP that opens a directory, scans all files therein (skipping . and ..), then performs a series of transmogrifications on the file names, then submits to a DB.
Script A, in PHP: 21 lines, average run time 0.024s.
Script B, in Ruby: 6 lines, average run time 0.009s.
That’s pretty significant.



