Skip to content

Instantly share code, notes, and snippets.

@bobthecow
Created March 17, 2010 01:49
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 bobthecow/334793 to your computer and use it in GitHub Desktop.
Save bobthecow/334793 to your computer and use it in GitHub Desktop.
Each test run on 5000 total instances.
**1 classes:**
spl_object_hash() time: 0.0025229454040527
spl_object_hash_var_dump() time: 0.042062997817993
spl_object_hash_references() time: 1.8909840583801
**2 classes:**
spl_object_hash() time: 0.0025219917297363
spl_object_hash_var_dump() time: 0.042673826217651
spl_object_hash_references() time: 0.96944999694824
**5 classes:**
spl_object_hash() time: 0.002547025680542
spl_object_hash_var_dump() time: 0.04230809211731
spl_object_hash_references() time: 0.42495894432068
**10 classes:**
spl_object_hash() time: 0.0025100708007812
spl_object_hash_var_dump() time: 0.042142152786255
spl_object_hash_references() time: 0.23865604400635
**100 classes:**
spl_object_hash() time: 0.0028560161590576
spl_object_hash_var_dump() time: 0.035429000854492
spl_object_hash_references() time: 0.090394973754883
**500 classes:**
spl_object_hash() time: 0.002586841583252
spl_object_hash_var_dump() time: 0.034965038299561
spl_object_hash_references() time: 0.15115904808044
**1000 classes:**
spl_object_hash() time: 0.0024881362915039
spl_object_hash_var_dump() time: 0.035768032073975
spl_object_hash_references() time: 0.33815884590149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment