JS Built-ins
performanceadvanced

performance β€” mark() returns a PerformanceMark

πŸ“– Usage Example
performance.clearMarks()
performance.clearMeasures()

clearMarks() and clearMeasures() remove stored timing entries from the buffer.

performance.mark()

performance.mark(name) creates a named timestamp entry and returns a PerformanceMark object.

Challenge: Verify that performance.mark('test-mark-3') is an instanceof PerformanceMark.

πŸ’‘ Hints (1)
  • β€’ performance.mark() was updated to return the created PerformanceMark in modern browsers