in reply to Re^2: Hashing it out: defined? exists?
in thread Hashing it out: defined? exists?
Changing 100000 to -3 (means 3 seconds) and changin timethese to cmpthese gives:
Rate defined exists as is defined 1961549/s -- -10% -12% exists 2181802/s 11% -- -2% as is 2236990/s 14% 3% --
Oddly enough, defined is slower. Then again, this isn't a very accurate test since the condition always evaluates to true. Also, any time loss is so minute compared losses from other inefficiencies that it doesn't matter. Deciding which of these to use based on efficiency is like trying to trying to what kind of gum to buy based on how long it takes to remove the packaging.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Hashing it out: defined? exists?
by eff_i_g (Curate) on Sep 02, 2005 at 20:27 UTC |