In general, times reported in DrRacket are unreliable.

See: 
https://docs.racket-lang.org/guide/performance.html#%28part._.Dr.Racket-perf%29

Try the command line. Here's what I get on my machine:

$ ~/racket61/bin/racket
Welcome to Racket v6.1.
-> (define (total n)
     (for/sum ([x (in-range (+ 1 n))]) x))
-> (time (total 1000000000))
cpu time: 3044 real time: 3051 gc time: 0
500000000500000000

$ ~/racket62/bin/racket
Welcome to Racket v6.2.
-> (define (total n)
     (for/sum ([x (in-range (+ 1 n))]) x))
-> (time (total 1000000000))
cpu time: 3036 real time: 3046 gc time: 0
500000000500000000

$ ~/racket63/bin/racket
Welcome to Racket v6.3.
-> (define (total n)
     (for/sum ([x (in-range (+ 1 n))]) x))
-> (time (total 1000000000))
cpu time: 3040 real time: 3045 gc time: 0
500000000500000000

$ ~/racket64/bin/racket
Welcome to Racket v6.4.
-> (define (total n)
(for/sum ([x (in-range (+ 1 n))]) x))
-> (time (total 1000000000))
cpu time: 3036 real time: 3041 gc time: 0
500000000500000000



On Wed, Mar 2, 2016 at 1:31 PM, Matthias Felleisen <matth...@ccs.neu.edu> wrote:
>
> It sounds like your files are not compiled. Try
>
>  raco setup
>
> in a shell. You may need to supply some command line flags if your files are 
> half way compiled.
>
> (Your examples runs in 3200 ms on my Mac in Racket 6.4.1)
>
>
>
> On Mar 2, 2016, at 1:26 PM, vkelmenson via Racket Users 
> <racket-users@googlegroups.com> wrote:
>
>> On Tuesday, March 1, 2016 at 10:51:58 PM UTC-5, vkelm...@aol.com wrote:
>>> I recently downloaded Racket version 6.4. I have previously been using 
>>> version 6.1. It is much slower than version 6.1. Several short functions 
>>> run approx 20 times slower on 6.4 than 6.1. These were run at the same time 
>>> on the sam matine in succession.
>>> I am using Mac osX version 10.8.5
>>>     Has anyone else noticed this?
>>
>> (define (total n)
>>  (for/sum ([x (in-range (+ 1 n))]) x))
>> (time (total 1000000000))
>> in Racket 6.1 just now 5287 milliseconds. In Racket 6.4 102384 milliseconds.
>> Also: When I am typing in the interactions pane of 6.4 there is often a 1-2 
>> second delay before my
>> keystrokes show up.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to