[racket-dev] Optional equality predicate for assoc and member

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Sun Apr 24 12:48:53 EDT 2011

Thanks for the performance numbers and JIT enhancements, Matthew.

Do I read this correctly that (for whatever distributions of inputs you 
used) we can expect the new "assq" to be about twice as fast on 64-bit 
x86, and about half-again as slow on 32-bit?


Matthew Flatt wrote at 04/24/2011 10:44 AM:
> 32-bit run:
>
> 'kern:assq
> cpu time: 23 real time: 23 gc time: 0
> cpu time: 38 real time: 39 gc time: 0
> cpu time: 39 real time: 38 gc time: 0
> 'assq
> cpu time: 38 real time: 39 gc time: 0
> cpu time: 60 real time: 61 gc time: 0
> cpu time: 61 real time: 61 gc time: 0
>   

> 64-bit run:
>
> 'kern:assq
> cpu time: 36 real time: 36 gc time: 0
> cpu time: 117 real time: 117 gc time: 0
> cpu time: 118 real time: 118 gc time: 0
> 'assq
> cpu time: 39 real time: 39 gc time: 0
> cpu time: 66 real time: 65 gc time: 0
> cpu time: 65 real time: 65 gc time: 0
>   

-- 
http://www.neilvandyke.org/


Posted on the dev mailing list.