Each step is taking more than 10 seconds

When I run my automation, each step takes more than 10 seconds, even the clicking/typing action. What causes this long delay?
I suspect that it’s the screenshot that’s taken for each step (which appears in the report).
I’ve set the screenshot value to ‘never’, though.
image

I have changed the WaitAfter (Milliseconds) value to 500 but it doesn’t help much.

Additionally, I noticed that when I take a screenshot on the scenario, the ‘loading’ takes around 9 seconds to appear on the preview window.

My theory is if the screen have a lot of boxes/texts to scan by the vision model, it will take time to scan and process them all.

Hi @marcus,

Preview can take long since it is a time consuming process.

However, Clicks should not take that long. I tried on my end and it is faster.

Could you please share json results to be able to see the details in the report?

Here’s a sample JSON from one of the steps. Even the clicking and writing commands take a while (more than 8 seconds).
Is it because I’m doing an automation using a Windows app (Telegram)? I tried making a different automation earlier using Google sheet and notepad, and the steps were executed much faster. Thank you.

{
“StatusCode”: 0,
“Start”: “2024-07-12T01:19:08.9538231-04:00”,
“End”: “2024-07-12T01:19:22.2381163-04:00”,
“Success”: true,
“Milliseconds”: 13284.2932,
“Name”: “TryStepAsync - Click Text "New Group" -WaitAfter 500”,
“Children”: [
{
“StatusCode”: 0,
“Start”: “2024-07-12T01:19:08.9538452-04:00”,
“End”: “2024-07-12T01:19:21.723334-04:00”,
“Success”: true,
“Milliseconds”: 12769.4888,
“Name”: “Main run (1/1) - RunSubTasks”,
“Children”: [
{
“StatusCode”: 0,
“Start”: “2024-07-12T01:19:08.9580798-04:00”,
“End”: “2024-07-12T01:19:20.4260904-04:00”,
“Success”: true,
“Milliseconds”: 11468.0106,
“Name”: “ScreenshotAsync - ScreenshotAsync”,
“Screenshot”: “screenshots/c926a92f-5444-4e37-a9f9-b09723adc299/bce50090-f018-4ba0-a36b-f5ae5ff3b3a4/20240712051920-yOu5BjoKHmLXJe9JFq5YYfrAyZKcqHleLtKtUo3CNQWAgl1DOKpf8cobSTg6AwIi.png”,
“Children”: [
{
“StatusCode”: “OK”,
“Start”: “2024-07-12T01:19:08.9581223-04:00”,
“End”: “2024-07-12T01:19:20.4260588-04:00”,
“Success”: true,
“Milliseconds”: 11467.9365,
“Name”: “PostJsonAsync - HandleRestResponse”,
“Uri”: “POST http://agenthub.u-xer.com/api/hub/screenshot
}
]
},
{
“StatusCode”: 0,
“Start”: “2024-07-12T01:19:20.427649-04:00”,
“End”: “2024-07-12T01:19:21.2951044-04:00”,
“Success”: true,
“Milliseconds”: 867.4554,
“Name”: “ReaderAsync”,
“Screenshot”: “screenshots/c926a92f-5444-4e37-a9f9-b09723adc299/bce50090-f018-4ba0-a36b-f5ae5ff3b3a4/20240712051921-LFZ5RnnY3FdXDWQWBXbFT0xT8c8pA5HicjZphSf1R2h36Ycop3y9VvZJGuX609ux.png”,
“Location”: “{"x":120.5,"y":394.5,"xmin":76,"xmax":165,"ymin":386,"ymax":403}”,
“Element”: “{\r\n "ocrlang": "en",\r\n "casesensitive": false,\r\n "element": [\r\n {\r\n "classifier": "Text",\r\n "text": "New Group",\r\n "options": \r\n }\r\n ]\r\n}”,
“Children”: [
{
“StatusCode”: “OK”,
“Start”: “2024-07-12T01:19:20.4276973-04:00”,
“End”: “2024-07-12T01:19:21.2942062-04:00”,
“Success”: true,
“Milliseconds”: 866.5089,
“Name”: “PostFormAsync - HandleRestResponse”,
“Uri”: “POST http://localhost:8003/reader
}
]
},
{
“StatusCode”: 0,
“Start”: “2024-07-12T01:19:21.4063251-04:00”,
“End”: “2024-07-12T01:19:21.7197631-04:00”,
“Success”: true,
“Milliseconds”: 313.438,
“Name”: "CallAsync - - "
}
]
}
]
}

I just completed my automation, and it took 27 minutes from start to finish even though most of the steps are to click and write (type). Would have been awesome if it can be done in less than 10 minutes.

Here are examples taken from the report showing how long each step took:
|Click Text Schedule|0:00:12.416|Success|
|SendKeys ALT TAB|0:00:13.337|Success|
|SendKeys RIGHT|0:00:07.288|Success|
|SendKeys CONTROL VK_C|0:00:04.769|Success|
|SendKeys ALT TAB|0:00:06.486|Success|
|SendKeys CONTROL VK_V|0:00:12.552|Success|

This is way too long.

Where are you located?

And what is your internet speed?

Can you take a look at the internet speed using speedtest.net and choose new york as a server.

I’m based in Indonesia, but I don’t think internet speed is the issue.
Any suggestions on what I should do to improve the execution speed?

My execution speed is around 3-4 seconds, sendkeys are 2 seconds. I dont see any other reason than the speed and location

What is your screen resolution?

It’s 1920x1080, 16GB RAM
And when I take a screenshot, it takes 10 seconds for the image to appear on the agent preview panel. Could this be related to the execution speed?

This is happening because of slow internet. I know the speed is perfect but according to my testing this is only happening because of internet. For this try using 1.1.1.1 Cloudflare and try

or test it somewhere else where there is a powerful internet

if anyone need a key for 1.1.1.1 Cloudflare which gives you access to unlimited internet just inbox me i will be happy to share with you

Thanks Usman! Your suggestion got me thinking I should try running the automation using a VPN.
And, it’s much faster now!
So, why is it that using VPN or Cloudfare makes it faster? Does that mean my internet provider does something that slows the traffic down?

Your internet provider continuously monitors your internet activity, and sometimes delays occur due to connecting with different servers. Using a VPN or Cloudflare can help bypass multiple server connections, allowing you to connect to a single server, which can maximize your internet speed. When you take a speed test, there are usually two options: the normal test, which is shown as soon as you open Speedtest, and the single server test.

The normal speed test uses multiple connections to measure the maximum potential speed of your internet by downloading data from several servers simultaneously. This method is useful for general browsing and streaming, where multiple connections are often used. On the other hand, the single server test uses a single connection to measure the speed, which can be more representative of activities like downloading a large file or using a VPN.

Using a single server test can give you a better understanding of your internet speed under specific conditions, such as when you’re connected to a VPN or downloading large files.

Yeah me too, Asia server to EU server is not stable, VPN is the best solution.