Using the time command you can see how long each curl command took.
~$ time curl -XPOST "http://192.168.1.4:8089/dvr/files/2517/comskip/edit?source=local" --data-raw "[]"
{"ID":"2517","JobID":"1699142400-172","RuleID":"172","GroupID":"25873335","Path":"TV/Planet Earth III/Planet Earth III S01E01 Coasts 2023-11-04-1700.mpg","CreatedAt":1699142400,"FileSize":1651563832,"Duration":2980.410767,"Completed":true,"Processed":true,"Airing":{"Source":"tms","Channel":"6087","OriginalDate":"2023-10-22","Time":1699142400,"Duration":4260,"Title":"Planet Earth III","EpisodeTitle":"Coasts","Summary":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts.","FullSummary":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts, where animals fight for survival amid constant change; there are some unexpected residents on Namibia's Skeleton Coast.","Image":"https://tmsimg.fancybits.co/assets/p25873335_b_h9_aa.jpg?w=720\u0026h=540","Categories":["Episode","Series"],"Genres":["Nature","Documentary"],"Tags":["Series Premiere","New","HD","Stereo","CC"],"SeriesID":"25873335","ProgramID":"EP049004200001","SeasonNumber":1,"EpisodeNumber":1,"Cast":["David Attenborough"],"ReleaseYear":2023,"Raw":{"startTime":"2023-11-05T00:00Z","endTime":"2023-11-05T01:11Z","duration":71,"channels":["6087"],"stationId":"64492","qualifiers":["CC","HD 1080i","HDTV","New","Series Premiere"],"program":{"tmsId":"EP049004200001","rootId":"25873369","seriesId":"25873335","entityType":"Episode","subType":"Series","title":"Planet Earth III","titleLang":"en-GB","episodeTitle":"Coasts","episodeNum":1,"seasonNum":1,"releaseYear":2023,"releaseDate":"2023-10-22","origAirDate":"2023-10-22","descriptionLang":"en","shortDescription":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts.","longDescription":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts, where animals fight for survival amid constant change; there are some unexpected residents on Namibia's Skeleton Coast.","topCast":null,"genres":["Nature","Documentary"],"preferredImage":{"uri":"https://tmsimg.fancybits.co/assets/p25873335_b_h9_aa.jpg?w=720\u0026h=540","height":"540","width":"720","primary":"true","category":"Banner-L1","text":"yes","tier":"Series"}}}},"ChannelNumber":"6087","DeviceID":"TVE-Comcast_SSO","UpdatedAt":1699209829870,"Version":6,"JobTime":1699142400,"JobDuration":4380,"HighestPTS":394808760,"BufferStats":{"BufferPct":{"Initial":0,"Last":0,"Min":0,"Max":0,"Sum":0,"GoodCount":0,"BadCount":2185},"BufferDrop":{"Initial":0,"Last":0,"Min":0,"Max":0,"Sum":0,"GoodCount":2185,"BadCount":0}},"CommercialsAligned":true,"CommercialsEdited":true,"CommercialDetectSource":"local","PlaybackTime":181,"PlayedAt":1699142825594}
real 0m0.529s
user 0m0.010s
sys 0m0.005s
~$ time curl -XPUT "http://192.168.1.4:8089/dvr/files/2517/reprocess"
{"ID":"2517","JobID":"1699142400-172","RuleID":"172","GroupID":"25873335","Path":"TV/Planet Earth III/Planet Earth III S01E01 Coasts 2023-11-04-1700.mpg","CreatedAt":1699142400,"FileSize":1651563832,"Duration":2980.410767,"Completed":true,"Processed":true,"Airing":{"Source":"tms","Channel":"6087","OriginalDate":"2023-10-22","Time":1699142400,"Duration":4260,"Title":"Planet Earth III","EpisodeTitle":"Coasts","Summary":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts.","FullSummary":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts, where animals fight for survival amid constant change; there are some unexpected residents on Namibia's Skeleton Coast.","Image":"https://tmsimg.fancybits.co/assets/p25873335_b_h9_aa.jpg?w=720\u0026h=540","Categories":["Episode","Series"],"Genres":["Nature","Documentary"],"Tags":["Series Premiere","New","HD","Stereo","CC"],"SeriesID":"25873335","ProgramID":"EP049004200001","SeasonNumber":1,"EpisodeNumber":1,"Cast":["David Attenborough"],"ReleaseYear":2023,"Raw":{"startTime":"2023-11-05T00:00Z","endTime":"2023-11-05T01:11Z","duration":71,"channels":["6087"],"stationId":"64492","qualifiers":["CC","HD 1080i","HDTV","New","Series Premiere"],"program":{"tmsId":"EP049004200001","rootId":"25873369","seriesId":"25873335","entityType":"Episode","subType":"Series","title":"Planet Earth III","titleLang":"en-GB","episodeTitle":"Coasts","episodeNum":1,"seasonNum":1,"releaseYear":2023,"releaseDate":"2023-10-22","origAirDate":"2023-10-22","descriptionLang":"en","shortDescription":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts.","longDescription":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts, where animals fight for survival amid constant change; there are some unexpected residents on Namibia's Skeleton Coast.","topCast":null,"genres":["Nature","Documentary"],"preferredImage":{"uri":"https://tmsimg.fancybits.co/assets/p25873335_b_h9_aa.jpg?w=720\u0026h=540","height":"540","width":"720","primary":"true","category":"Banner-L1","text":"yes","tier":"Series"}}}},"ChannelNumber":"6087","DeviceID":"TVE-Comcast_SSO","UpdatedAt":1699209830566,"Version":6,"JobTime":1699142400,"JobDuration":4380,"HighestPTS":394808760,"BufferStats":{"BufferPct":{"Initial":0,"Last":0,"Min":0,"Max":0,"Sum":0,"GoodCount":0,"BadCount":2185},"BufferDrop":{"Initial":0,"Last":0,"Min":0,"Max":0,"Sum":0,"GoodCount":2185,"BadCount":0}},"CommercialsAligned":true,"CommercialsEdited":true,"CommercialDetectSource":"local","PlaybackTime":181,"PlayedAt":1699142825594}
real 0m0.658s
user 0m0.012s
sys 0m0.004s
~$ time curl -XPUT "http://192.168.1.4:8089/dvr/files/2517/m3u8"
{"ID":"2517","JobID":"1699142400-172","RuleID":"172","GroupID":"25873335","Path":"TV/Planet Earth III/Planet Earth III S01E01 Coasts 2023-11-04-1700.mpg","CreatedAt":1699142400,"FileSize":1651563832,"Duration":2980.410767,"Completed":true,"Processed":true,"Airing":{"Source":"tms","Channel":"6087","OriginalDate":"2023-10-22","Time":1699142400,"Duration":4260,"Title":"Planet Earth III","EpisodeTitle":"Coasts","Summary":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts.","FullSummary":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts, where animals fight for survival amid constant change; there are some unexpected residents on Namibia's Skeleton Coast.","Image":"https://tmsimg.fancybits.co/assets/p25873335_b_h9_aa.jpg?w=720\u0026h=540","Categories":["Episode","Series"],"Genres":["Nature","Documentary"],"Tags":["Series Premiere","New","HD","Stereo","CC"],"SeriesID":"25873335","ProgramID":"EP049004200001","SeasonNumber":1,"EpisodeNumber":1,"Cast":["David Attenborough"],"ReleaseYear":2023,"Raw":{"startTime":"2023-11-05T00:00Z","endTime":"2023-11-05T01:11Z","duration":71,"channels":["6087"],"stationId":"64492","qualifiers":["CC","HD 1080i","HDTV","New","Series Premiere"],"program":{"tmsId":"EP049004200001","rootId":"25873369","seriesId":"25873335","entityType":"Episode","subType":"Series","title":"Planet Earth III","titleLang":"en-GB","episodeTitle":"Coasts","episodeNum":1,"seasonNum":1,"releaseYear":2023,"releaseDate":"2023-10-22","origAirDate":"2023-10-22","descriptionLang":"en","shortDescription":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts.","longDescription":"Sir David Attenborough explores the dangerous frontiers created by the world's coasts, where animals fight for survival amid constant change; there are some unexpected residents on Namibia's Skeleton Coast.","topCast":null,"genres":["Nature","Documentary"],"preferredImage":{"uri":"https://tmsimg.fancybits.co/assets/p25873335_b_h9_aa.jpg?w=720\u0026h=540","height":"540","width":"720","primary":"true","category":"Banner-L1","text":"yes","tier":"Series"}}}},"ChannelNumber":"6087","DeviceID":"TVE-Comcast_SSO","UpdatedAt":1699209830566,"Version":6,"JobTime":1699142400,"JobDuration":4380,"HighestPTS":394808760,"BufferStats":{"BufferPct":{"Initial":0,"Last":0,"Min":0,"Max":0,"Sum":0,"GoodCount":0,"BadCount":2185},"BufferDrop":{"Initial":0,"Last":0,"Min":0,"Max":0,"Sum":0,"GoodCount":2185,"BadCount":0}},"CommercialsAligned":true,"CommercialsEdited":true,"CommercialDetectSource":"local","PlaybackTime":181,"PlayedAt":1699142825594}
real 0m0.019s
user 0m0.011s
sys 0m0.004s
And time marknocommercials.sh
should show how long the shell script took to execute