Ask Your Question
0

computational time

asked 2018-06-20 10:24:53 +0100

santoshi gravatar image

i am using two platforms to run the code. one is sagemath cloud and second is sagemath terminal. the computational time obtained in both the platform is different. the results obtained are better in sagemath terminal. i am writing paper so please suggest me which result i have to consider for my research paper.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2018-06-20 10:55:59 +0100

tmonteil gravatar image

WIth sagemath cloud, the performance depends on the load that depends on how many users use it at the same time (unless you pay for dedicated ressource). On your own computer, you can shut down all other ressource-consuming programs, and specify the architecture (processor, ram,...) on the paper so that readers can extrapolate and check on their own architecture. Hence i would recommend to prefer these results.

Howver, beyond that naive argument, note that benchmarking has tons of pitfalls, and requires some methodology especially if you want to compare the implementations of two different algorithms (sorry that i can not help here, i am not a specialist, but specialists do exist an produce teaching material).

While i am at it, let me suggest to consider the citationmodule which allows to also cite the libraries that Sage used to provide your answer: http://doc.sagemath.org/html/en/refer...

edit flag offensive delete link more
1

answered 2018-06-20 12:28:51 +0100

joaoff gravatar image

updated 2018-06-20 12:31:16 +0100

If you use the timeit command to profile your code, adjusting the command options (e.g., preparse, number, repeat, precision) adequately, you should obtain more or less the same timing every time you measure your code execution time, either in sagemath cloud (cocalc) or running it through the terminal.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-06-20 10:24:53 +0100

Seen: 890 times

Last updated: Jun 20 '18