sbcgua / ajson

Yet another json parser serializer for ABAP
MIT License
50 stars 15 forks source link

Performance tracking #87

Open sbcgua opened 2 years ago

sbcgua commented 2 years ago

For performance history. Maybe needs a better place.

So first result, NW752, Intel i7-8565U, 32GB

AJSON simple performance test
Date 2021-12-07
PARSE_PLAIN_OBJ                rounds: 1000         result: 0.1352210
PARSE_DEEP_OBJ                 rounds: 1000         result: 0.2143690
PARSE_ARRAY                    rounds: 1000         result: 0.4908800
PARSE_LONG_ARRAY               rounds: 5            result: 6.4535280
PARSE_COMPLEX                  rounds: 5            result: 4.5247740
TO_ABAP_PLAIN_OBJ              rounds: 1000         result: 0.0344460
TO_ABAP_DEEP_OBJ               rounds: 1000         result: 0.0763780
TO_ABAP_ARRAY                  rounds: 1000         result: 0.2096340
TO_ABAP_LONG_ARRAY             rounds: 5            result: 2.8247510
TO_ABAP_COMPLEX                rounds: 5            result: 2.1266610
sbcgua commented 2 years ago

after optimization in #89

PARSE_PLAIN_OBJ                rounds: 1000         result: 0.2931330
PARSE_DEEP_OBJ                 rounds: 1000         result: 0.2171430
PARSE_ARRAY                    rounds: 1000         result: 0.5031820
PARSE_LONG_ARRAY               rounds: 5            result: 6.3871630
PARSE_COMPLEX                  rounds: 5            result: 4.4010290
TO_ABAP_PLAIN_OBJ              rounds: 1000         result: 0.0460880
TO_ABAP_DEEP_OBJ               rounds: 1000         result: 0.0841320
TO_ABAP_ARRAY                  rounds: 1000         result: 0.1415220
TO_ABAP_LONG_ARRAY             rounds: 5            result: 1.4254720
TO_ABAP_COMPLEX                rounds: 5            result: 0.9330490