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
0
votes
1 answer

Using the MethodEntry and MethodExit event hooks provided by the JVMTI how would I measure the time of a method executed in Java?

i saw your below thread. I was also trying to do similar thing but not sure which api would give the best result: can u please suggest which one you used? Using the MethodEntry and MethodExit event hooks provided by the JVMTI how would I measure the…
0
votes
1 answer

Is there a way to monitor a local variable on a running real time software, other than copying it to a memory location or defining it as a static?

Example: int Global; void outputFunction(void) { int local1; int local2; local1 = 10; local2 = 5 + local1; Global = local2; } in the previous example local1 and local2 are not in scope. am working with real time software…
0
votes
1 answer

how to calculate the program execution time in streambase?

I'm a new comer in Streambase, so I still not many know about Streambase. I want to know how fast the process that do by Streambase. So, I think I should create something that can calculate the execution time and maybe the output that produced can…
user0550
  • 21
  • 6
0
votes
2 answers

Erratic average execution times for C function

I'm trying to optimize a chunk of code given to me by a friend but my baseline for average execution times of it are extremely erratic and I'm lost to as why/how to fix it. Code: #include #include #include #include…
centip3de
  • 107
  • 1
  • 7
0
votes
1 answer

estimate execution time before running a function

I have a function that runs for about 0.7 seconds on my not-so-new development machine. (it runs for about 3 seconds on another machine I tested) I want to show the user some pre-message about half a second before the above function is done. I don't…
Ron K
  • 109
  • 1
  • 9
0
votes
1 answer

Why my parallel program on linear search using OpenMP is taking more execution time than the sequential linear search program?

#include #include int main() { int i, key=85, tid; int a[100] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,…
0
votes
3 answers

How to get the execution time in small fraction using currentTimeMillis() method

I need to get the execution time for a function in Java. I am aware of two methods I can use: currentTimeMillis(); and nanoTime(); But I have learned that currentTimeMillis(); is more accurate if I need the wall-clock time (i.e, as if I am measuring…
Wiliam A
  • 457
  • 3
  • 7
  • 10
0
votes
2 answers

Does python script execution time depend on internet speed?

I am using pydub to mix two wav files in one file. Each wav file has about 25Mb and for me page is loaded in about 4 seconds ( so execution time would be 4 seconds ) Does this execution time depend on user's internet connection speed? If it has…
John
  • 7,500
  • 16
  • 62
  • 95
0
votes
2 answers

SQL query taking more time when columns reduced

I have a select query with 100+ columns from 15 tables and more then 100000 rows. And the execution time of this query is around 15 mnts. Now when I have reduced number of columns to 50 and comments out respective tables. As per my understanding…
0
votes
3 answers

How to divide a huge process into multiple steps in php?

I need to process an xml file and insert some data accordingly to my database. Since the XML file contains close to 10000 lines and there could be some thousand rows to insert to database I'm afraid my script will exceed max execution time. I've…
2hamed
  • 8,719
  • 13
  • 69
  • 112
0
votes
2 answers

Passing arrays to new php-script or execute in the same function (execution time)

I am currently working on a project with some more data than in other projects. I filter different rss-feeds and save them in our database (we already contacted the authors and they are okay with that ;) ). We already gathered some data and the…
KddC
  • 2,853
  • 2
  • 17
  • 19
0
votes
1 answer

PHP: "max execution time" immediately

I am currently running a large website based on our own framework. When uploading a picture we occasionaly get a Maximum execution time of 30 seconds exceeded within a fraction of a second. So I dont think the execution time is actually exceeded.…
0
votes
1 answer

Disk / Data read increase after putting on an index

I have a small query that runs pretty fast. And somehow I thought adding an index to an unindexed collumn would make it faster but turned out it didn't. In fact, it does increase my disk reads and execution time. What I'd like to ask is can…
RedFux227
  • 101
  • 14
0
votes
0 answers

Limiting max query execution time, number of connection and readers available to specific user in SQL Server

Is there any way, and if, how to set arbitrary maximum number of: query execution time open connection number simulatanous data readers for specific database user in SQL Server 2008? As for the user he'll be only operating on views with readonly…
0
votes
7 answers

PHP Function execution cost table

There is a reference table that shows the execution cost of every php function? I know that the time execution is boundet to many factors and is impossible to determinate an unique value, but im looking for a 'ideological' table. For…
Strae
  • 18,807
  • 29
  • 92
  • 131