Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Online Compiler to check execution time [closed]

I want to know any available Code compiler (C++ specifically) which gives the total execution time of submitted code.

To my knowledge, Ideone being good online compiler doesn't provide this feature. It'd very great if there exists a service to check the execution time (Total Running time) for a code.

like image 694
djadmin Avatar asked Oct 04 '13 14:10

djadmin


1 Answers

rextester provides this information, for example I just ran their default C++ program I see the following output above the results:

Compilation time: 0.83 sec, absolute running time: 0.15 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0.99 sec (cached)

those are pretty rough numbers and your are limited to 5 seconds of cpu time. The other simple option is to use time when you execute on Coliru. For example I modified the default command as follows:

set -x ; g++-4.8 -std=c++11 -O2 -Wall -pedantic -pthread main.cpp && time ./a.out
                                                                     ^^^^

this will provide you with output like this:

real    0m0.005s
user    0m0.000s
sys     0m0.008s
like image 193
Shafik Yaghmour Avatar answered Nov 11 '22 07:11

Shafik Yaghmour