Does comparison of floating point numbers takes (considerably) longer time than comparison of Integers in C?I just wrote a C program of heap sort to sort floating point numbers.I am on ubuntu 14.04 and I used time command to check the time taken by this program for sorting 50, 5000 and 50000 random numbers and then I just changed all double to int and again checked time for 50, 5000 and 5000 numbers and statistics are as follows:$ time ./heap 50 < input.txt real    0m0.003suser    0m0.001ssys 0m0.002s$ time ./temp 50 < input.txt real    0m0.003suser    0m0.001ssys 0m0.002s$ time ./heap 5000 < input.txt real    0m0.008suser    0m0.007ssys 0m0.002s$ time ./temp 5000 < input.txt real    0m0.005suser    0m0.004ssys 0m0.001s$ time ./heap 50000 < input.txt real    0m0.030suser    0m0.028ssys 0m0.002s$ time ./temp 50000 < input.txt real    0m0.027suser    0m0.026ssys 0m0.002s$ time ./heap 500000 < input.txt real    0m0.263suser    0m0.259ssys 0m0.003s$ time ./temp 500000 < input.txt real    0m0.219suser    0m0.216ssys 0m0.003sHere heap is the executable of floating point heapsort and temp is the executable of Integer number heapsort.As we can see there is noticeable difference in running times? What is the reason? I can upload the codes if needed.
comparison of floating point numbers vs. comparsion of Integers in C
c;performance;sorting