HTML Preparation code:
AخA
 
1
<script src="
2
https://cdn.jsdelivr.net/npm/object-hash@3.0.0/dist/object_hash.min.js
3
"></script>
Script Preparation code:
 
window.data = {
    prop1: {
        a: 1,
        b: 'a'
    },
    prop2: {
        a: 1,
        b: 'a'
    },
    prop3: {
        a: 1,
        b: 'a'
    },
    prop4: {
        a: 1,
        b: 'a'
    },
    prop5: {
        a: 1,
        b: 'a'
    },
};
Tests:
  • Object hash

     
    objectHash(window.data);
  • JSON.stringify

     
    JSON.stringify(window.data);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Object hash
    JSON.stringify

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 13 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Object hash 13099.5 Ops/sec
JSON.stringify 3690302.8 Ops/sec