mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add more benchmarks for performance.measure (#52556)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52556 Changelog: [internal] This adds a new benchmark for `performance.measure` to measure the performance of calling it without arguments. Reviewed By: hoxyq Differential Revision: D78013563 fbshipit-source-id: 84e2151d9d91cfc2e85d310f42010483e7304648
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1fc168f005
commit
38cf247c63
Vendored
+9
@@ -44,6 +44,15 @@ Fantom.unstable_benchmark
|
||||
afterEach: clearMarksAndMeasures,
|
||||
},
|
||||
)
|
||||
.test(
|
||||
'measure (default)',
|
||||
() => {
|
||||
performance.measure('measure');
|
||||
},
|
||||
{
|
||||
afterEach: clearMarksAndMeasures,
|
||||
},
|
||||
)
|
||||
.test(
|
||||
'measure (with start and end timestamps)',
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user