Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited title
Link

Can you help me to understand why does the output of time function variesvary every time while applying it on same file with same sort type?

Source Link

Can you help me to understand why does the output of time function varies every time while applying it on same file with same sort type?

When I run for example (time ./sort1 random5000.txt) it gives me real, syst, and user time. But if I run the same command again it will gives me different time results! I can't understand why this scenario happens. Knowing that this difference doesn't follow certain pattern, sometimes time increased and other time it deceased.