Questions tagged [execution-time]

Execution time refers to how long it takes a particular program to execute.

Use this tag for questions related to measuring or improving the execution time of a particular piece of code.

724 questions
30
votes
1 answer

Maximum execution time of 120 seconds exceeded in yii2

I upload an excel file with 1000 rows, by default I have just 2 min in execution time, with that time I can upload 400 records. I get this error Maximum execution time of 120 seconds exceeded How i can modify this period in yii2 framework ?
Malki Mohamed
  • 1,578
  • 2
  • 23
  • 40
29
votes
6 answers

Java anonymous class efficiency implications

Is there any difference in efficiency (e.g. execution time, code size, etc.) between these two ways of doing things? Below are contrived examples that create objects and do nothing, but my actual scenarios may be creating new Threads, Listeners,…
Phil
  • 5,595
  • 5
  • 35
  • 55
26
votes
3 answers

mysql execution time

Is there a way to get the execution time of the last executed query in mysql?
mck89
  • 18,918
  • 16
  • 89
  • 106
23
votes
4 answers

get execution time in milliseconds in R

I have read a solution to this using tic(), toc() functions tic <- function(gcFirst = TRUE, type=c("elapsed", "user.self", "sys.self")) { type <- match.arg(type) assign(".type", type, envir=baseenv()) if(gcFirst) gc(FALSE) tic <-…
edgarmtze
  • 24,683
  • 80
  • 235
  • 386
23
votes
4 answers

gcc -O0 outperforming -O3 on matrix sizes that are powers of 2 (matrix transpositions)

(For testing purposes) I have written a simple Method to calculate the transpose of a nxn Matrix void transpose(const size_t _n, double* _A) { for(uint i=0; i < _n; ++i) { for(uint j=i+1; j < _n; ++j) { double tmp =…
example
  • 3,349
  • 1
  • 20
  • 29
21
votes
7 answers

How to launch a Java program with precisely controlled execution time?

As I know JVM before launching a Java application it allocates some piece of RAM for it, and this memory could be controlled by user before launching. But there is another problem when I launch an app it has a different time execution each…
Asad Ganiev
  • 449
  • 4
  • 16
20
votes
9 answers

How to limit the execution time of a function in c sharp?

I've got a problem. I'm writing a benchmark and I have a function than is either done in 2 seconds or after ~5 minutes(depending on the input data). And I would like to stop that function if it's executed for more than 3 seconds... How can I do…
Novellizator
  • 13,633
  • 9
  • 43
  • 65
20
votes
4 answers

Fatal error: Maximum execution time of 0 seconds exceeded

My script compares 2 source trees, creates a map of possible changed files, compares MD5 hashes and creates a diff-package. After 28000-29000 files, PHP terminates the script with error: Fatal error: Maximum execution time of 0 seconds exceeded in…
kiler129
  • 1,063
  • 2
  • 11
  • 21
19
votes
13 answers

What is considered a long execution time?

I am trying to figure out the efficiency of my server side code. Using microtime(true) to measure speed, I am able to calculate the time it took my script to run. I am getting average speeds of .3 to .5 seconds. These scripts do a number of database…
Stephen Watkins
  • 25,047
  • 15
  • 66
  • 100
17
votes
3 answers

Why Android TimingLogger is not able to print logs?

I am trying to use TimingLogger for checking time consumed for a particular method and its statements. But Android TimingLogger is not able to print logs.
ASHOK KUMAR
  • 811
  • 6
  • 14
16
votes
1 answer

JQuery grep(...) VS native JavaScript filter(...) function performance

I measured the execution times of those two functions: jQuery grep function Native JavaScript filter function The execution of following methods have been measured using Chrome Profiles tool: // jQuery GREP function function alternative1(words,…
PrimosK
  • 13,848
  • 10
  • 60
  • 78
15
votes
2 answers

Overriding php.ini on server

I have a page which allows users to upload images. It is returning a 500 error when the user tries to upload larger images though. The following code...
Tom
  • 12,776
  • 48
  • 145
  • 240
14
votes
5 answers

A 3,000,000,000 iterations loop behaves weirdly

While trying to answer this question, I met a weird behavior (which isn't the same: his is due to too few iterations, mine to too much): HTML:
JS: var output =…
sp00m
  • 47,968
  • 31
  • 142
  • 252
13
votes
2 answers

Mathematica execution-time bug: symbol names

There is a strange bug that has been in Mathematica for years, at least since version 5.1, and persisting through version 7. Module[{f, L}, L = f[]; Do[L = f[L, i], {i, 10^4}]] // Timing {0.015, Null} Module[{weirdness, L}, L = weirdness[]; …
Mr.Wizard
  • 24,179
  • 5
  • 44
  • 125
13
votes
2 answers

Execution time with process.hrtime() return vastly different result

I'm having trouble explaining why my performance test return significantly different results on 2 different types of run. Steps to reproduce issue: Get the code from gist: https://gist.github.com/AVAVT/83685bfe5280efc7278465f90657b9ea Run node…
AVAVT
  • 7,058
  • 2
  • 21
  • 44
1
2
3
48 49