Skip to main content
Version: Next

performance 🧪

Experimental 🧪

This API is experimental. Experimental APIs may contain bugs and are likely to change in a future version of React Native. Don't use them in production.

The global performance object, as defined in Web specifications.


Reference

Instance properties

eventCounts

See documentation in MDN.

memory

See documentation in MDN.

rnStartupTiming ⚠️

Non-standard

This is a React Native specific extension.

Provides information about the startup time of the application.

ts
get rnStartupTiming(): ReactNativeStartupTiming;

The ReactNativeStartupTiming interface provides the following fields:

NameTypeDescription
startTimenumber | voidWhen the application startup was started.
initializeRuntimeStartnumber | voidWhen the React Native runtime initialization was started.
executeJavaScriptBundleEntryPointStartnumber | voidWhen the execution of the application bundle was started.
endTimenumber | voidWhen the React Native runtime was fully initialized.

timeOrigin

Partial support

Provides the number of milliseconds from the Unix epoch until system boot, instead of the number of milliseconds from the Unix epoch until app startup.

See documentation in MDN.

Instance methods

clearMarks()

See documentation in MDN.

clearMeasures()

See documentation in MDN.

getEntries()

See documentation in MDN.

getEntriesByName()

See documentation in MDN.

getEntriesByType()

See documentation in MDN.

mark()

See documentation in MDN.

measure()

See documentation in MDN.

now()

Partial support

Provides the number of milliseconds from system boot, instead of the number of milliseconds from app startup.

See documentation in MDN.