Skip to content

Performance on Apple M1

Ales Teska edited this page Mar 14, 2021 · 2 revisions

This is a performance test results from execution run on Apple M1 CPU (MacBook Air from 20201).
The performance test verifies a speed of parsing of JSON in Python.

Note: orjson and libev_simdjson has been removed from a test because their installations failed.

----------------------------------------------------------------
# 'test/jsonexamples/test.json' 2397 bytes
----------------------------------------------------------------
* cysimdjson parse         1034965.44 EPS (  1.00)  2480.81 MB/s
* pysimdjson parse          581823.54 EPS (  1.78)  1394.63 MB/s
* python json loads         110092.71 EPS (  9.40)   263.89 MB/s
----------------------------------------------------------------
----------------------------------------------------------------
# 'test/jsonexamples/twitter.json' 631515 bytes
----------------------------------------------------------------
* cysimdjson pad parse        5026.46 EPS (  1.00)  3174.29 MB/s
* cysimdjson parse            4786.36 EPS (  1.05)  3022.66 MB/s
* pysimdjson parse            4758.75 EPS (  1.06)  3005.22 MB/s
* python json loads            503.88 EPS (  9.98)   318.21 MB/s
----------------------------------------------------------------
----------------------------------------------------------------
# 'test/jsonexamples/canada.json' 2251051 bytes
----------------------------------------------------------------
* cysimdjson parse             439.15 EPS (  1.07)   988.56 MB/s
* pysimdjson parse             438.33 EPS (  1.07)   986.70 MB/s
* python json loads             45.55 EPS ( 10.31)   102.54 MB/s
----------------------------------------------------------------
----------------------------------------------------------------
# 'test/jsonexamples/gsoc-2018.json' 3327831 bytes
----------------------------------------------------------------
* cysimdjson parse             995.20 EPS (  1.20)  3311.85 MB/s
* pysimdjson parse             971.46 EPS (  1.23)  3232.85 MB/s
* python json loads            160.69 EPS (  7.42)   534.74 MB/s
----------------------------------------------------------------
----------------------------------------------------------------
# 'test/jsonexamples/verysmall.json' 7 bytes
----------------------------------------------------------------
* cysimdjson parse         6640983.55 EPS (  1.00)    46.49 MB/s
* pysimdjson parse         1334117.68 EPS (  4.98)     9.34 MB/s
* python json loads        1013142.57 EPS (  6.55)     7.09 MB/s
----------------------------------------------------------------
```

Clone this wiki locally