[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MSPS-game (Re: PCL benchmark)



Actually, when I tested the following, even simpler, code, I got even better results:

(defmethod do-nothing ((x foo)) nil)
(defmethod do-nothing ((x bar)) nil)

(defmethod mm-do-nothing ((x bar) (y foo)) nil)
(defmethod mm-do-nothing ((x foo) (y bar)) nil)

(defun do-nothing-foo (x) nil)

Results:

(time (do-nothing *foo*) :repeat 500) ==>		176 ms
(time (mm-do-nothing *foo* *bar*) :repeat 500) ==>	224 ms
(time (do-nothing-foo *foo*) :repeat 500) ==>		149 ms

	-- Harley