php - Comparing runtimes -


i trying accurate runtime comparisons of php vs python (and potentially other language have include). timing within script not problem timing within script not account moment request made run script output.

1) worth taking such things account?

2) assuming worth taking account, how do this?

i'm using mac i've got access linux commands , i'm not afraid compile/create command me, don't know how write such command.

if idea compare languages, i'd outside them not relevant comparison purposes.

nonetheless can use time command measure , can compare timing within script.

like this:

$ time script.php hi!  real    0m3.218s user    0m0.080s sys     0m0.064s 

it give clock time, user time (php interpreter) , sys time (os time)

if thinking web, gets lot harder because mixing webserver overhead , not easy compare if, say, using wsgi v/s mod_php. you'd have hook probes webserving parts of chain well


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -