devtools-core icon indicating copy to clipboard operation
devtools-core copied to clipboard

Object inspector is the slowest in console.log performance on perf.html

Open gregtatum opened this issue 7 years ago • 1 comments

Here is my analysis of console performance in a real world application: https://gist.github.com/gregtatum/4d5dbf3df558de2dd26e39dbe1413b73

TL;DR the object inspector is the slowest offender in perf.html development mode console.log.

STR:

  • Run the development version of perf.html
  • Open up the stack chart view, and the console.
  • Start recording.
  • Zoom in the timeline (which spams the console.log)
  • Stop recording.

gregtatum avatar Oct 02 '17 21:10 gregtatum

This is a single batched message update: Notice the ObjectInspector dominating the timing. image

gregtatum avatar Oct 02 '17 21:10 gregtatum