Jump to content

Which is the fastest way to run a script ?


kcvinu
 Share

Recommended Posts

Which is the fastest way to run a script ?

 1. Making an exe file from script (without using UPX) and run

2. Starting Autoit3.exe with script as a parameter.

 

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

That's highly depending on so many factors that any possible speed improvement doesn't even matter. Just think about these silly cases but there are many more factors involved. You start your application but Windows Defender prevent your app to start for like 5 seconds or you start your application when the system is busy running applications with a higher priority and your app starts after 5 seconds and so on...

I don't think there is a such big difference to even matter since the big difference it's made by the system as a whole (OS, apps, etc). Anyway, what are you trying to achieve or is this a more philosophical question?

When the words fail... music speaks.

Link to comment
Share on other sites

@Andreik,

Nothing special, I am just trying to find which is the faster way. Exe file is convenience because, when running from another program, it's quite easy to manage parameters. But in case of script, we need to run Autoit3.exe & AutoitWrapper.au3. So parameter list will be bigger and clumsy. In my use case, most of my scripts are running with PhraseExpress or QtTabbar (Famous windows explorer extension). 

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

You can create a script to measure that. Make a script that will run the actual application and measure the time until the process exists. In the same way you can run autoit3.exe with script as parameter and measure the time passed until the process exists. If you want to be even more precise you can write a log with a timestamp from the measuring script when the application is started and from the actual application write also a timestamp when the first line of the script is hit and compare the results.

PS: to be relevant probably you should run the tests multiple times and get an average startup time

Edited by Andreik

When the words fail... music speaks.

Link to comment
Share on other sites

@Andreik

That's a good idea. Thank you, let me try.😀

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

Sure.

Spoiler

My Contributions

Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language.

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...