{
  "v8Profiler": {
    "totalSamples": 6028,
    "lineTimings": {
      "node:internal/main/run_main_module": {
        "1": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "node:internal/modules/run_main": {
        "140": {
          "hits": 0,
          "functionName": "executeUserEntryPoint",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "node:internal/modules/cjs/loader": {
        "231": {
          "hits": 0,
          "functionName": "wrapModuleLoad",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "1196": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "1461": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "1688": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "1836": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "node:diagnostics_channel": {
        "208": {
          "hits": 1,
          "functionName": "get hasSubscribers",
          "selfTime": 0,
          "percentage": "0.02"
        },
        "320": {
          "hits": 0,
          "functionName": "traceSync",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "file:///Users/saurabh/Library/CloudStorage/Dropbox/codeflash/experiments/js-line-profiler/run-experiment.js": {
        "1": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "100": {
          "hits": 1048,
          "functionName": "experimentV8Profiler",
          "selfTime": 0,
          "percentage": "17.39"
        },
        "552": {
          "hits": 0,
          "functionName": "main",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "file:///Users/saurabh/Library/CloudStorage/Dropbox/codeflash/experiments/js-line-profiler/v8-inspector-profiler.js": {
        "120": {
          "hits": 0,
          "functionName": "startPreciseProfiling",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "126": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "127": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "131": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "138": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "153": {
          "hits": 2,
          "functionName": "stopPreciseProfiling",
          "selfTime": 0,
          "percentage": "0.03"
        },
        "154": {
          "hits": 1,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.02"
        },
        "156": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "node:inspector": {
        "66": {
          "hits": 0,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "84": {
          "hits": 9,
          "functionName": "#onMessage",
          "selfTime": 0,
          "percentage": "0.15"
        },
        "115": {
          "hits": 7,
          "functionName": "post",
          "selfTime": 0,
          "percentage": "0.12"
        }
      },
      "node:internal/process/task_queues": {
        "72": {
          "hits": 2,
          "functionName": "processTicksAndRejections",
          "selfTime": 0,
          "percentage": "0.03"
        }
      },
      "node:internal/async_hooks": {
        "509": {
          "hits": 0,
          "functionName": "emitBeforeScript",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "539": {
          "hits": 1,
          "functionName": "pushAsyncContext",
          "selfTime": 0,
          "percentage": "0.02"
        }
      },
      "node:internal/streams/writable": {
        "451": {
          "hits": 0,
          "functionName": "_write",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "502": {
          "hits": 0,
          "functionName": "Writable.write",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "546": {
          "hits": 0,
          "functionName": "writeOrBuffer",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "613": {
          "hits": 1,
          "functionName": "onwrite",
          "selfTime": 0,
          "percentage": "0.02"
        },
        "691": {
          "hits": 3,
          "functionName": "afterWriteTick",
          "selfTime": 0,
          "percentage": "0.05"
        },
        "697": {
          "hits": 0,
          "functionName": "afterWrite",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "node:internal/console/constructor": {
        "270": {
          "hits": 0,
          "functionName": "value",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "333": {
          "hits": 1,
          "functionName": "value",
          "selfTime": 0,
          "percentage": "0.02"
        },
        "352": {
          "hits": 1,
          "functionName": "(anonymous)",
          "selfTime": 0,
          "percentage": "0.02"
        },
        "380": {
          "hits": 1,
          "functionName": "log",
          "selfTime": 0,
          "percentage": "0.02"
        }
      },
      "node:net": {
        "935": {
          "hits": 0,
          "functionName": "Socket._writeGeneric",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "977": {
          "hits": 0,
          "functionName": "Socket._write",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "node:internal/stream_base_commons": {
        "46": {
          "hits": 1,
          "functionName": "handleWriteReq",
          "selfTime": 0,
          "percentage": "0.02"
        },
        "146": {
          "hits": 0,
          "functionName": "writeGeneric",
          "selfTime": 0,
          "percentage": "0.00"
        },
        "154": {
          "hits": 0,
          "functionName": "afterWriteDispatched",
          "selfTime": 0,
          "percentage": "0.00"
        }
      },
      "file:///Users/saurabh/Library/CloudStorage/Dropbox/codeflash/experiments/js-line-profiler/target-functions.js": {
        "7": {
          "hits": 115,
          "functionName": "fibonacci",
          "selfTime": 0,
          "percentage": "1.91"
        },
        "20": {
          "hits": 3723,
          "functionName": "reverseString",
          "selfTime": 0,
          "percentage": "61.76"
        },
        "29": {
          "hits": 281,
          "functionName": "bubbleSort",
          "selfTime": 0,
          "percentage": "4.66"
        }
      }
    },
    "overhead": "Low (sampling-based)",
    "granularity": "Function-level with approximate line info"
  },
  "customInstrumentation": {
    "baselines": {
      "fibonacci": 131.6041,
      "reverseString": 8660.625,
      "bubbleSort": 343.25
    },
    "instrumented": {
      "fibonacci": 10015.8834,
      "reverseString": 199992.0834,
      "bubbleSort": 18676.75
    },
    "overhead": {
      "fibonacci": "7510.6%",
      "reverseString": "2209.2%",
      "bubbleSort": "5341.2%"
    },
    "lineTimings": {
      "bubbleSort": {
        "1": {
          "count": 1000,
          "totalNs": 31470,
          "avgNs": 31
        },
        "2": {
          "count": 1000,
          "totalNs": 66183,
          "avgNs": 66
        },
        "3": {
          "count": 9000,
          "totalNs": 428141,
          "avgNs": 47
        },
        "4": {
          "count": 44000,
          "totalNs": 1869701,
          "avgNs": 42
        },
        "5": {
          "count": 36000,
          "totalNs": 1440002,
          "avgNs": 40
        },
        "6": {
          "count": 17000,
          "totalNs": 1373060,
          "avgNs": 80
        },
        "7": {
          "count": 17000,
          "totalNs": 614225,
          "avgNs": 36
        },
        "8": {
          "count": 17000,
          "totalNs": 796211,
          "avgNs": 46
        },
        "12": {
          "count": 1000,
          "totalNs": 36250,
          "avgNs": 36
        }
      }
    }
  },
  "timingAccuracy": {
    "timerOverhead": {
      "avg": 961.5024,
      "min": 0,
      "max": 4347084
    },
    "consistency": {
      "coefficientOfVariation": "83.38%",
      "runs": [
        1051.6875,
        724.51125,
        160.24958,
        226.12625,
        86.71
      ]
    },
    "jitWarmup": [
      188.5,
      39.375,
      28.625,
      28.75,
      28.5,
      28.542,
      28.541,
      28.459,
      28.583,
      28.417
    ]
  },
  "relativeAccuracy": {
    "timings": {
      "1": {
        "count": 5000,
        "totalNs": 154166,
        "avgNs": 30
      },
      "2": {
        "count": 505000,
        "totalNs": 14558153,
        "avgNs": 28
      },
      "3": {
        "count": 500000,
        "totalNs": 20127647,
        "avgNs": 40
      },
      "4": {
        "count": 500000,
        "totalNs": 18310123,
        "avgNs": 36
      },
      "5": {
        "count": 500000,
        "totalNs": 67101211,
        "avgNs": 134
      },
      "6": {
        "count": 500000,
        "totalNs": 14333615,
        "avgNs": 28
      },
      "7": {
        "count": 5000,
        "totalNs": 168393,
        "avgNs": 33
      }
    },
    "verification": {
      "arrayMostExpensive": true,
      "toStringMoreThanArithmetic": true
    }
  },
  "realWorld": {
    "fibonacci": {
      "1": {
        "count": 10000,
        "totalNs": 314800,
        "avgNs": 31
      },
      "2": {
        "count": 10000,
        "totalNs": 341056,
        "avgNs": 34
      },
      "3": {
        "count": 10000,
        "totalNs": 359398,
        "avgNs": 35
      },
      "4": {
        "count": 400000,
        "totalNs": 11982999,
        "avgNs": 29
      },
      "5": {
        "count": 390000,
        "totalNs": 14024067,
        "avgNs": 35
      },
      "6": {
        "count": 390000,
        "totalNs": 10662935,
        "avgNs": 27
      },
      "7": {
        "count": 390000,
        "totalNs": 9631790,
        "avgNs": 24
      },
      "8": {
        "count": 10000,
        "totalNs": 318849,
        "avgNs": 31
      }
    },
    "reverseString": {
      "1": {
        "count": 10000,
        "totalNs": 334349,
        "avgNs": 33
      },
      "2": {
        "count": 12010000,
        "totalNs": 356400729,
        "avgNs": 29
      },
      "3": {
        "count": 12000000,
        "totalNs": 445353788,
        "avgNs": 37
      },
      "5": {
        "count": 10000,
        "totalNs": 294722,
        "avgNs": 29
      }
    },
    "bubbleSort": {
      "1": {
        "count": 1000,
        "totalNs": 30428,
        "avgNs": 30
      },
      "2": {
        "count": 1000,
        "totalNs": 123658,
        "avgNs": 123
      },
      "3": {
        "count": 100000,
        "totalNs": 3536118,
        "avgNs": 35
      },
      "4": {
        "count": 5049000,
        "totalNs": 152396965,
        "avgNs": 30
      },
      "5": {
        "count": 4950000,
        "totalNs": 142842371,
        "avgNs": 28
      },
      "6": {
        "count": 2602000,
        "totalNs": 87089187,
        "avgNs": 33
      },
      "7": {
        "count": 2602000,
        "totalNs": 93142681,
        "avgNs": 35
      },
      "8": {
        "count": 2602000,
        "totalNs": 94325697,
        "avgNs": 36
      },
      "12": {
        "count": 1000,
        "totalNs": 33170,
        "avgNs": 33
      }
    }
  }
}