Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.37 KB

File metadata and controls

31 lines (22 loc) · 1.37 KB

json-stream-stringify-benchmark

create JSON strings larger than 512MB in javascript

libraries

excluded libraries

result

  • JSON.stringify fails after 1.052 seconds
  • big-json done after 1.52 seconds
  • json-stream-stringify done after 1.917 seconds
  • json-stream-es done after 2.076 seconds
  • har-json-stringify done after 2.048 seconds

todo

  • also verify correct JSON output by piping to jq
  • benchmark different types of data, for example deeply-nested arrays