Questions tagged [execution]

Refers to the act of running a process.

Refers to the act of running a process. Generally used in reference to the time taken for the process to complete.

1743 questions
19
votes
7 answers

How to execute a large PHP Script?

Well basically I may want to execute a script that may take as much as 1 hours as well. What I really want to do is Send SMS to my users using a third party API. So its basically like I supply my script with an array of phone numbers and fire the…
Atif
  • 10,623
  • 20
  • 63
  • 96
19
votes
1 answer

Difference between Gradle's terms evaluation and execution

I am new to Gradle build tool and now I am reading the User Guide, but can't understand fully the difference between evaluation and execution phases. In configuration phase project objects are configured and DAG is created, but we have…
Xelian
  • 16,680
  • 25
  • 99
  • 152
19
votes
2 answers

Timing the CPU time of a python program?

I would like to time a snippet of my code, and I would like just the CPU execution time (ignoring operating system processes etc). I've tried time.clock(), it appears too imprecise, and gives a different answer each time. (In theory surely if I run…
Nathan Bush
  • 1,401
  • 4
  • 13
  • 17
16
votes
0 answers

vstest.console.exe execution model and isolation behaviors

I'm trying to determine the considerations that should be made when writing tests that are going to run under vstest.console.exe. Example 1: Let's say that I have two tests both of which rely on MyClass.Singleton.Counter having a value of zero. Now…
Kaleb Pederson
  • 45,767
  • 19
  • 102
  • 147
16
votes
4 answers

What is the difference between execution and evaluation?

We say that expresssions "evaluate" values and statement orders computer to "execute". But to me it seems like same terminology. What is the difference between execution and evaluation in C?
Jin
  • 1,902
  • 3
  • 15
  • 26
16
votes
5 answers

at-most-once and exactly-once

I am studying Distributed Systems and when it comes to the RPC part, I have heard about these two semantics (at-most-once and exactly-once). I understand that the at-most-once is used on databases for instances, when we don't want duplicate…
BrunoMCBraga
  • 652
  • 2
  • 7
  • 23
15
votes
1 answer

Recent-ish changes to the Python execution model?

I just re-read the section on execution models in the 3rd edition of Learning Python (late 2007), and it felt fairly tentative. So, I looked at the same section in the 4th edition (late 2009) and was pretty disappointed that it was completely…
Paul Hoffman
  • 1,820
  • 3
  • 15
  • 20
14
votes
4 answers

How to get a program's running time in Haskell

How can I go about getting a program's running time through system time functions in Haskell? I would like to measure the execution time of a whole program and/or an individual function.
user645466
14
votes
4 answers

When does Googlebot execute javascript?

I have a few single page web apps on multiple domains that heavily rely on javascript/ajax to fetch and show content. Based on logs and search results I can tell that googlebot runs javascript on some of the domains but not on others. On some it…
Moto
  • 141
  • 1
  • 3
14
votes
3 answers

PHP workflow - order of execution of functions

I'm wondering about order of interpreting function declarations by PHP engine. I don't know why somethimes PHP shows Call to undefined function fatal error and somethimes interpreter see the function without problem. Let's suppose my code is: echo…
webrama.pl
  • 1,870
  • 1
  • 23
  • 36
13
votes
4 answers

Calculate average execution time of a program using Bash

To get the execution time of any executable, say a.out, I can simply write time ./a.out. This will output a real time, user time and system time. Is it possible write a bash script that runs the program numerous times and calculates and outputs the…
mooncow
  • 413
  • 4
  • 11
13
votes
2 answers

python: How to trace function execution order in large project

I want to trace function/class executive order in scrapy framework. There are multiple *.py files across the default project, and I want to know which py file and class has been executed in order. It sound silly to put logger line in every class and…
anonymous
  • 1,372
  • 1
  • 17
  • 22
13
votes
0 answers

Launch JNLP file in MS Edge

I have a ASP.NET site which offers JNLP files for starting Java Web Start applications. I've set them as hrefs in tags to download them. The behaviour I get from different browsers varies: IE11: Auto launch Firefox (45): Auto launch Chrome…
MPelletier
  • 16,256
  • 15
  • 86
  • 137
13
votes
1 answer

Streaming commands output progress

I'm writing a service that has to stream output of a executed command both to parent and to log. When there is a long process, the problem is that cmd.StdoutPipe gives me a final (string) result. Is it possible to give partial output of what is…
jftp
  • 185
  • 1
  • 8
12
votes
5 answers

CPU execution time in Java

I want to calculate how much CPU time my function takes to execute in Java. Currently I am doing as below. long startTime = System.currentTimeMillis(); myfunction(); long endTime = System.currentTimeMillis(); long searchTime = endTime…
ravi
  • 267
  • 1
  • 5
  • 15