performance

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.

Note: This feature is only available in Web Workers.

Thuộc tính performance của giao diện WorkerGlobalScope trả về một đối tượng Performance, có thể được sử dụng để thu thập thông tin hiệu suất về mã đang chạy trong phạm vi của worker.

Cú pháp

Xem tài liệu gốc để biết cú pháp chi tiết.

Ví dụ

Xem tài liệu gốc để biết ví dụ.

Đặc tả kỹ thuật

Specification
High Resolution Time
# the-performance-attribute

Tương thích trình duyệt