Time complexity comparison between bubble sort and inbuilt sort function

my doubt is for different system time varies or not
because when sir run the program for n=100
bubble sort took 39 ms
sort function takes 9 ms


this is my code pls check the code too
and when i run the program on my sublime text its showing different output

this is the scrrenshot when i run the same code on my system pls clear this problem

hi @dipeshgupta197
u can try running ur code for a number of times and every time there will be difference in time written over there…

i know sir mere sir ke compare mein mera same output nhi aaraha hein
kyuki for n=3 sir ka bubble sort ka time tha 39 aur inbuilt sort ka time tha 3 ms
thats why i ask ki system alag alag hein tooo output alag alag aaega

Yes, alg alg hi aayega in that case…

proper reason for this if u give me that we would be better for understanding

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.