ujsonyajlsimplejsonjsonArray with 256 doublesencode3508.1957423232.383309.09decode25103.3711257.8311696.2611871.04Array with 256 UTF-8 stringsencode3189.712717.142006.382961.72decode1354.94630.54356.35344.05Array with 256 stringsencode18127.4712537.3912541.2320001decode23264.712788.8525427.889352.36Medium complex objectencode10519.385021.293686.864643.47decode9676.535326.798515.773017.3Array with 256 True valuesencode105998.03102067.2844758.5160424.8decode163869.9678341.57110859.36115013.9Array with 256 dict{string, int} pairsencode13471.3212109.093876.48833.92decode16890.638946.0712218.553350.72Dict with 256 arrays with 256 dict{string, int} pairsencode50.2546.4513.8229.28decode33.2722.127.9110.43Dict with 256 arrays with 256 dict{string, int} pairs, outputting sorted keysencode27.197.752.39Complex objectencode577.98387.81470.02decode496.73234.44151145.16Versions:
CPython 3.4.3 (default, Oct 14 2015, 20:28:29) [GCC 4.8.4]
ujsonyajlsimplejsonjsonArray with 256 doublesencode3477.155732.243016.763071.99decode23625.29731.459501.579901.92Array with 256 UTF-8 stringsencode1995.892151.611771.981817.2decode1425.04625.38327.14305.95Array with 256 stringsencode25461.7512188.613054.7614429.81decode21981.3117014.223869.4822483.58Medium complex objectencode10821.464837.043114.044254.46decode7887.775126.674934.66204.97Array with 256 True valuesencode100452.994639.446657.6360358.63decode148312.775485.988434.91116395.5Array with 256 dict{string, int} pairsencode11698.138886.963043.696302.35decode10686.47061.775646.87702.29Dict with 256 arrays with 256 dict{string, int} pairsencode44.2634.4310.421.97decode28.4623.9518.722.83Dict with 256 arrays with 256 dict{string, int} pairs, outputting sorted keysencode33.66.9422.34Complex objectencode432.3351.47379.34decode434.4221.97149.57147.79 结尾
通过上面的这些步骤其实就可以解析JSON大文件了,是不是很简单呢?
原文链接:https://segmentfault.com/a/1190000010138782
课程推荐
Golang 实战班第2期火热报名进行中
招生要求:
有 Linux 基础,有志于使用 Go 语言做分布式系统编程的人员,想往系统架构师方向发展的同学。BAT 架构师带你一起飞。 课程内容: