(define bv #vu8(95 120 195 50 116 227 63 169 222 86 89 38 92 145 126 37 192 55 34)) (define (the-test p) (let loop ((n 0)) (when (< n #e1e6) (p bv) (loop (+ n 1))))) (display "old:\n") ;; Warm up the JIT (the-test (@ (guix base16) bytevector->base16-string/old)) ;; And time the procedure ((@ (ice-9 time) time) (the-test (@ (guix base16) bytevector->base16-string/old))) ((@ (ice-9 time) time) (the-test (@ (guix base16) bytevector->base16-string/old))) ((@ (ice-9 time) time) (the-test (@ (guix base16) bytevector->base16-string/old))) (display "new:\n") ;; Warm up the JIT (the-test (@ (guix base16) bytevector->base16-string)) ;; And time the procedure ((@ (ice-9 time) time) (the-test (@ (guix base16) bytevector->base16-string))) ((@ (ice-9 time) time) (the-test (@ (guix base16) bytevector->base16-string))) ((@ (ice-9 time) time) (the-test (@ (guix base16) bytevector->base16-string)))