21st Century Digital Boy

March 31, 2009

A quick comparison

Filed under: Uncategorized — Gregg @ 10:20 am

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.

No Comments Yet »

No comments yet.

RSS feed for comments on this post.

Leave a comment

You must be logged in to post a comment.

Blog at WordPress.com.