[racket-dev] Optional equality predicate for assoc and member
At Sun, 24 Apr 2011 12:48:53 -0400, Neil Van Dyke wrote:
> 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?
Well, here are some new numbers (32-bit):
'kern:assq
cpu time: 23 real time: 23 gc time: 0
cpu time: 38 real time: 39 gc time: 0
cpu time: 38 real time: 38 gc time: 0
'assq
cpu time: 29 real time: 29 gc time: 0
cpu time: 55 real time: 55 gc time: 0
cpu time: 56 real time: 56 gc time: 0
'kern:assoc
cpu time: 54 real time: 54 gc time: 0
cpu time: 578 real time: 578 gc time: 0
cpu time: 565 real time: 565 gc time: 0
'assoc
cpu time: 63 real time: 64 gc time: 0
cpu time: 583 real time: 584 gc time: 0
cpu time: 577 real time: 578 gc time: 0
I'll post separately on the JIT improvement that produced these
results.