@@ -103,6 +103,7 @@ describe(testName, function() {
103103 } ) ;
104104
105105 it ( 'Simple mode - Start recording and stop' , async function ( ) {
106+ const start = performance . now ( ) ;
106107 // Preparing environment
107108 obs . setSetting ( EOBSSettingsCategories . Output , 'Mode' , 'Simple' ) ;
108109 obs . setSetting ( EOBSSettingsCategories . Output , 'StreamEncoder' , obs . os === 'win32' ? 'x264' : 'obs_x264' ) ;
@@ -146,9 +147,13 @@ describe(testName, function() {
146147
147148 expect ( signalInfo . type ) . to . equal ( EOBSOutputType . Recording , GetErrorMessage ( ETestErrorMsg . RecordingOutput ) ) ;
148149 expect ( signalInfo . signal ) . to . equal ( EOBSOutputSignal . Wrote , GetErrorMessage ( ETestErrorMsg . RecordingOutput ) ) ;
150+ const end = performance . now ( ) ;
151+ console . log ( `t1-sm-time Elapsed time: ${ end - start } milliseconds` ) ;
152+
149153 } ) ;
150154
151155 it ( 'Simple mode - Start replay buffer, save replay and stop' , async function ( ) {
156+ const start = performance . now ( ) ;
152157 // Preparing environment
153158 obs . setSetting ( EOBSSettingsCategories . Output , 'Mode' , 'Simple' ) ;
154159 obs . setSetting ( EOBSSettingsCategories . Output , 'StreamEncoder' , obs . os === 'win32' ? 'x264' : 'obs_x264' ) ;
@@ -193,9 +198,12 @@ describe(testName, function() {
193198
194199 expect ( signalInfo . type ) . to . equal ( EOBSOutputType . ReplayBuffer , GetErrorMessage ( ETestErrorMsg . ReplayBuffer ) ) ;
195200 expect ( signalInfo . signal ) . to . equal ( EOBSOutputSignal . Stop , GetErrorMessage ( ETestErrorMsg . ReplayBuffer ) ) ;
201+ const end = performance . now ( ) ;
202+ console . log ( `t1-rb-time Elapsed time: ${ end - start } milliseconds` ) ;
196203 } ) ;
197204
198205 it ( 'Simple mode - Record while streaming' , async function ( ) {
206+ const start = performance . now ( ) ;
199207 // Preparing environment
200208 obs . setSetting ( EOBSSettingsCategories . Output , 'Mode' , 'Simple' ) ;
201209 obs . setSetting ( EOBSSettingsCategories . Output , 'StreamEncoder' , obs . os === 'win32' ? 'x264' : 'obs_x264' ) ;
@@ -280,9 +288,12 @@ describe(testName, function() {
280288 signalInfo = await obs . getNextSignalInfo ( EOBSOutputType . Streaming , EOBSOutputSignal . Deactivate ) ;
281289 expect ( signalInfo . type ) . to . equal ( EOBSOutputType . Streaming , GetErrorMessage ( ETestErrorMsg . StreamOutput ) ) ;
282290 expect ( signalInfo . signal ) . to . equal ( EOBSOutputSignal . Deactivate , GetErrorMessage ( ETestErrorMsg . StreamOutput ) ) ;
291+ const end = performance . now ( ) ;
292+ console . log ( `t-rws-time Elapsed time: ${ end - start } milliseconds` ) ;
283293 } ) ;
284294
285295 it ( 'Simple mode - Record replay while streaming and save' , async function ( ) {
296+ const start = performance . now ( ) ;
286297 // Preparing environment
287298 obs . setSetting ( EOBSSettingsCategories . Output , 'Mode' , 'Simple' ) ;
288299 obs . setSetting ( EOBSSettingsCategories . Output , 'StreamEncoder' , obs . os === 'win32' ? 'x264' : 'obs_x264' ) ;
@@ -367,9 +378,12 @@ describe(testName, function() {
367378 signalInfo = await obs . getNextSignalInfo ( EOBSOutputType . Streaming , EOBSOutputSignal . Deactivate ) ;
368379 expect ( signalInfo . type ) . to . equal ( EOBSOutputType . Streaming , GetErrorMessage ( ETestErrorMsg . StreamOutput ) ) ;
369380 expect ( signalInfo . signal ) . to . equal ( EOBSOutputSignal . Deactivate , GetErrorMessage ( ETestErrorMsg . StreamOutput ) ) ;
381+ const end = performance . now ( ) ;
382+ console . log ( `t-record-replay-while-stream-time Elapsed time: ${ end - start } milliseconds` ) ;
370383 } ) ;
371384
372385 it ( 'Simple mode - Record and use replay buffer while streaming' , async function ( ) {
386+ const start = performance . now ( ) ;
373387 // Preparing environment
374388 obs . setSetting ( EOBSSettingsCategories . Output , 'Mode' , 'Simple' ) ;
375389 obs . setSetting ( EOBSSettingsCategories . Output , 'StreamEncoder' , obs . os === 'win32' ? 'x264' : 'obs_x264' ) ;
@@ -494,6 +508,8 @@ describe(testName, function() {
494508 signalInfo = await obs . getNextSignalInfo ( EOBSOutputType . Streaming , EOBSOutputSignal . Deactivate ) ;
495509 expect ( signalInfo . type ) . to . equal ( EOBSOutputType . Streaming , GetErrorMessage ( ETestErrorMsg . StreamOutput ) ) ;
496510 expect ( signalInfo . signal ) . to . equal ( EOBSOutputSignal . Deactivate , GetErrorMessage ( ETestErrorMsg . StreamOutput ) ) ;
511+ const end = performance . now ( ) ;
512+ console . log ( `ss-urb Elapsed time: ${ end - start } milliseconds` ) ;
497513 } ) ;
498514
499515 it ( 'Advanced mode - Start and stop streaming' , async function ( ) {
@@ -947,6 +963,8 @@ describe(testName, function() {
947963 } ) ;
948964
949965 it ( 'Fail test - Stream with invalid stream key' , async function ( ) {
966+ const start = performance . now ( ) ;
967+
950968 let signalInfo : IOBSOutputSignalInfo ;
951969
952970 obs . setStreamKey ( 'invalid' ) ;
@@ -963,6 +981,8 @@ describe(testName, function() {
963981 expect ( signalInfo . code ) . to . equal ( - 3 , GetErrorMessage ( ETestErrorMsg . StreamOutput ) ) ;
964982
965983 obs . setStreamKey ( obs . userStreamKey ) ;
984+ const end = performance . now ( ) ;
985+ console . log ( `ft-invalid-stream-key Elapsed time: ${ end - start } milliseconds` ) ;
966986 } ) ;
967987
968988 it ( 'Reset video context' , function ( ) {
0 commit comments