A byte-compiled function is not as efficient as a primitive function written in C, but runs much faster than the version written in Lisp. Here is an example:
(defun silly-loop (n)
"Return the time, in seconds, to run N iterations of a loop."
(let ((t1 (current-time)))
(while (> (setq n (1- n)) 0))
(float-time (time-since t1))))
⇒ silly-loop
(silly-loop 100000000) ⇒ 2.236908583
(byte-compile 'silly-loop)
⇒ [Compiled code not shown]
(silly-loop 100000000) ⇒ 0.374873305
In this example, the interpreted code was about six times slower than the byte-compiled code. These results are representative, but actual results may vary.