clean up to compile, but stil an error in the defproto calls that need to be caught.
[CommonLispStat.git] / external / clem / benchmark / bench-subtr.lisp
blob2df23f94a12ee70e36bc74f568ccac202aa8a6c7
2 (in-package :clem-benchmark)
4 (let ((m (make-instance 'double-float-matrix :dimensions '(1024 1024) :initial-element 2d0))
5 (n (make-instance 'double-float-matrix :dimensions '(1024 1024) :initial-element 1d0)))
6 (with-matrix-benchmark (:subtr-1024-1024/double-float)
7 (m- m n)))
9 (let ((m (make-instance 'single-float-matrix :dimensions '(1024 1024) :initial-element 2s0))
10 (n (make-instance 'single-float-matrix :dimensions '(1024 1024) :initial-element 1s0)))
11 (with-matrix-benchmark (:subtr-1024-1024/single-float)
12 (m- m n)))
14 (let ((m (make-instance 'sb8-matrix :dimensions '(1024 1024) :initial-element 2))
15 (n (make-instance 'sb8-matrix :dimensions '(1024 1024) :initial-element 1)))
16 (with-matrix-benchmark (:subtr-1024-1024/sb8)
17 (m- m n)))
19 (let ((m (make-instance 'sb16-matrix :dimensions '(1024 1024) :initial-element 2))
20 (n (make-instance 'sb16-matrix :dimensions '(1024 1024) :initial-element 1)))
21 (with-matrix-benchmark (:subtr-1024-1024/sb16)
22 (m- m n)))
24 (let ((m (make-instance 'sb32-matrix :dimensions '(1024 1024) :initial-element 2))
25 (n (make-instance 'sb32-matrix :dimensions '(1024 1024) :initial-element 1)))
26 (with-matrix-benchmark (:subtr-1024-1024/sb32)
27 (m- m n)))
29 (let ((m (make-instance 'ub8-matrix :dimensions '(1024 1024) :initial-element 2))
30 (n (make-instance 'ub8-matrix :dimensions '(1024 1024) :initial-element 1)))
31 (with-matrix-benchmark (:subtr-1024-1024/ub8)
32 (m- m n)))
34 (let ((m (make-instance 'ub16-matrix :dimensions '(1024 1024) :initial-element 2))
35 (n (make-instance 'ub16-matrix :dimensions '(1024 1024) :initial-element 1)))
36 (with-matrix-benchmark (:subtr-1024-1024/ub16)
37 (m- m n)))
39 (let ((m (make-instance 'ub32-matrix :dimensions '(1024 1024) :initial-element 2))
40 (n (make-instance 'ub32-matrix :dimensions '(1024 1024) :initial-element 1)))
41 (with-matrix-benchmark (:subtr-1024-1024/ub32)
42 (m- m n)))