PHP Classes

File: Benchmark.md

Recommend this page to a friend!
  Classes of Max Base   JPOPHP PHP JSON Parser Class   Benchmark.md   Download  
File: Benchmark.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: JPOPHP PHP JSON Parser Class
Encode and decode data in JSON format
Author: By
Last change:
Date: 5 years ago
Size: 928 bytes
 

Contents

Class file image Download

Benchmark

Encode

Orginal PHP function json_encode()

1th Time : 0.0014569759368896 elapsed
2th Time : 0.0028131008148193 elapsed
3th Time : 0.0013258457183838 elapsed
4th Time : 0.0026090145111084 elapsed
-------------------------------------
Sigma Time : 0.008204937
Average Time : 0.008204937 ÷ 4 = 0.002051234

View Full Source Code

Own function $json->encode()

1th Time : 0.17581701278687 elapsed
2th Time : 0.17606496810913 elapsed
3th Time : 0.17591309547424 elapsed
4th Time : 0.17687296867371 elapsed
-----------------------------------
Sigma Time : 0.704668045
Average Time : 0.704668045 ÷ 4 = 0.176167011

View Full Source Code

Decode

Orginal PHP function json_decode()

Own function $json->decode()