HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/npm/es-toolkit@%5E1"></script>
Script Preparation code:
x
 
const node1 = {
    id: "n-w71cvCJS6w7WM8E3C3_6w",
    order: "a06DJ",
    type: "shape",
    attributes: {
      width: 100,
      height: 100,
      color: '#fff',
    }
};
const node2 = {
    id: "n-w71cvCJS6w7WM8E3C3_6w",
    order: "a06DJ",
    type: "shape",
    attributes: {
      width: 100,
      height: 100,
      color: '#fff',
    }
};
Tests:
  • es-toolkit

     
    _.isEqual(node1, node2);
  • JSON.stringify

     
    JSON.stringify(node1) === JSON.stringify(node2);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    es-toolkit
    JSON.stringify

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
es-toolkit 2184983.8 Ops/sec
JSON.stringify 3298864.8 Ops/sec