Tests:
  • POJO

    AخA
     
    var x = {
        value           : 10,
        label           : 'Codice fiscale,  
        valueStyle      : { fontsize: 14 },
        isEmpty         : function() { return 2%2 == 0 },
        isVisible       : true,
        style           : { xs_width: "100%", sm_width: "50%", xs_marginBottom: 20, sm_paddingRight: 5 },
        otherStuff: [
            { style: {color: "red", xs_width: "100%", sm_width: "50%", xs_marginBottom: 20, sm_paddingRight: 5} , class: "test_" },
            { style: {color: "blue"}, class: "toast_" }
          ]
      };
  • Function

    x
     
    var xxx = {
        value           : 20,
        label           : 'Codice fiscale',  
        valueStyle      : { fontsize: 14 },
        isEmpty         : function() { return 2%2 == 0 },
        isVisible       : true,
        style           : { xs_width: "100%", sm_width: "50%", xs_marginBottom: 20, sm_paddingRight: 5 },
        otherStuff: [
            { style: {color: "red", xs_width: "100%", sm_width: "50%", xs_marginBottom: 20, sm_paddingRight: 5} , class: "test_" },
            { style: {color: "blue"}, class: "toast_" }
          ]
      };
    var y = function() {
      return {
        value           : 10,
        label           : 'Codice fiscale',  
        valueStyle    : { fontsize: 14 },
        isEmpty     : function() { return 2%2 == 0 },
        isVisible       : true,
        style           : { xs_width: "100%", sm_width: "50%", xs_marginBottom: 20, sm_paddingRight: 5 },
        otherStuff: [
          { style: {color: "red", xs_width: "100%", sm_width: "50%", xs_marginBottom: 20, sm_paddingRight: 5} , class: "test_" },
          { style: {color: "blue"}, class: "toast_" }
        ]
      };
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    POJO
    Function

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Chrome 55 on Windows
View result in a separate tab
Test name Executions per second
POJO 842936.4 Ops/sec
Function 62792236.0 Ops/sec
Function w/ return 6307678.0 Ops/sec