Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 601 Bytes

PERFORMANCE.md

File metadata and controls

16 lines (12 loc) · 601 Bytes

Performance

There is a benchmark test which compares using JSONry and encoding/json to marshal and unmarshal the same data. The value of the benchmark is in the relative performance between the two. In the benchamark test:

  • Unmarshal

    • JSONry takes 2.5 times as long as encoding/json
    • JSONry allocates 5 times as much memory as enconding/json
  • Marshal

    • JSONry takes 10 times as long as encoding/json
    • JSONry allocates 17 times as much memory as enconding/json
  • Version: go version go1.14.3 darwin/amd64

  • Command: go test -run none -bench . -benchmem -benchtime 10s