HTML Preparation code:
AخA
 
1
<script crossorigin src="https://unpkg.com/@msgpack/msgpack"></script>
Script Preparation code:
x
 
var data = {"glossary":{"title":"example glossary","GlossDiv":{"title":"S","GlossList":{"GlossEntry":{"ID":"SGML","SortAs":"SGML","GlossTerm":"Standard Generalized Markup Language","Acronym":"SGML","Abbrev":"ISO 8879:1986","GlossDef":{"para":"A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso":["GML","XML"]},"GlossSee":"markup"}}}}};
var buf = JSON.stringify(data);
Tests:
  • MessagePack.encode

     
    var result = MessagePack.decode(buf);
  • JSON.parse

     
    var result = JSON.parse(buf);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    MessagePack.encode
    JSON.parse

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129 on Windows
View result in a separate tab
Test name Executions per second
MessagePack.encode 0.0 Ops/sec
JSON.parse 780545.8 Ops/sec