How to know the script execution time of a background script

JavaScriptMaest
Giga Contributor

How do you know the script execution time of a Business Rule?

The JavaScript method performance.now() isn't working in ServiceNow.

2 REPLIES 2

Lansford Hazel
Giga Expert

Hi, Performance.now() does not exist in the version of javascript ServiceNow is using. However, there are a few modules on the platform that could help you.

You can view all slow running script on the slow script module

find_real_file.png

The page response time icon, located at the bottom of all pages. This does not show you the specific business rule causing the issue but is still helpful. additionally, you can view this information for all users in the transaction logs.

find_real_file.png

 

chetanb
Tera Guru

browser developer option (F12)

<System Diagnostics> Debug Business Rules