Skip to content

Instantly share code, notes, and snippets.

@marcosh
Created January 2, 2017 16:57
Show Gist options
  • Save marcosh/4177e21ef0e29c7c5e84a57a1e6d9333 to your computer and use it in GitHub Desktop.
Save marcosh/4177e21ef0e29c7c5e84a57a1e6d9333 to your computer and use it in GitHub Desktop.
PDO::FETCH_FUNC without validation
10: 0.001568078994751
0.00071001052856445
0.00085306167602539
0.00087618827819824
0.00083112716674805
100: 0.0012631416320801
0.0014598369598389
0.0012869834899902
0.0014121532440186
0.0022499561309814
1000: 0.0076138973236084
0.0073959827423096
0.007127046585083
0.0071358680725098
0.0076160430908203
10000: 0.072512865066528
0.079240083694458
0.076354026794434
0.073804140090942
0.075477838516235
100000: 1.0966517925262
1.0509769916534
1.0567879676819
1.0967309474945
1.0990707874298
PDO::FETCH_FUNC with validation
10: 0.0020270347595215
0.0030570030212402
0.0022470951080322
0.0022530555725098
0.0021719932556152
100: 0.0066511631011963
0.0070052146911621
0.0078511238098145
0.0065371990203857
0.0070509910583496
1000: 0.05021595954895
0.058418989181519
0.053891897201538
0.053158044815063
0.048452138900757
10000: 0.46979594230652
0.47048783302307
0.45919609069824
0.45183801651001
0.45789909362793
100000: 8.1097569465637
7.9790599346161
8.1751539707184
8.1015360355377
8.6916501522064
PDO::FETCH_ASSOC without validation and class creation
10: 6.8902969360352E-5
6.9856643676758E-5
4.1007995605469E-5
4.0054321289062E-5
4.5061111450195E-5
100: 0.00055098533630371
0.00051283836364746
0.00029206275939941
0.00027894973754883
0.00041007995605469
1000: 0.0042221546173096
0.0026028156280518
0.0036520957946777
0.0033879280090332
0.0024669170379639
10000: 0.024300813674927
0.023928880691528
0.025290966033936
0.023923873901367
0.024693012237549
100000: 0.57446002960205
0.62014198303223
0.59930086135864
0.63125896453857
0.60571599006653
PDO::FETCH_ASSOC without validation but with class creation
10: 0.0010111331939697
0.00075793266296387
0.00076913833618164
0.0006721019744873
0.00065302848815918
100: 0.0014119148254395
0.0019440650939941
0.0024988651275635
0.0022850036621094
0.001446008682251
1000: 0.008430004119873
0.010470867156982
0.0085949897766113
0.010857105255127
0.008497953414917
10000: 0.099943876266479
0.094604015350342
0.11197304725647
0.11871194839478
0.10063982009888
100000: 2.0765459537506
2.1168100833893
2.0783259868622
2.032506942749
1.9674739837646
PDO::FETCH_ASSOC with validation and class creation
10: 0.0020990371704102
0.0019679069519043
0.0026850700378418
0.0022900104522705
0.0021178722381592
100: 0.0088040828704834
0.0069341659545898
0.006242036819458
0.007634162902832
0.0061221122741699
1000: 0.0501708984375
0.053174018859863
0.064257860183716
0.052992105484009
0.056418895721436
10000: 0.49848818778992
0.48422694206238
0.48148703575134
0.50130891799927
0.49390292167664
100000: 11.612645149231
11.761249780655
11.837252140045
11.82893705368
12.775961875916
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment