MacBookPro(mid 2009)にWindows7を入れた ― 2011/09/02 22:31
windows7 エクスペリエント(MacBookPro 2009) ― 2011/09/02 22:35
MacBookPro(2009)竹内関数のベンチマーク MACOSより遅い ― 2011/09/02 23:43
MacBookPro(mid 2009)
OS Windows7 64bit
SBCL 1.0.50
遅い!!! なぜだ
(defun tarai (x y z)
(if (<= x y) y
(tarai (tarai (1- x) y z) (tarai (1- y) z x) (tarai (1- z) x y))))
TARAI
* (time (tarai 13 7 0))
Evaluation took:
1.342 seconds of real time
1.341608 seconds of total run time (1.341608 user, 0.000000 system)
100.00% CPU
3,407,258,575 processor cycles
0 bytes consed
13
* (time (tarai 14 8 0))
Evaluation took:
10.218 seconds of real time
10.202466 seconds of total run time (10.202466 user, 0.000000 system)
99.84% CPU
25,753,160,443 processor cycles
0 bytes consed
14
*
OS Windows7 64bit
SBCL 1.0.50
遅い!!! なぜだ
(defun tarai (x y z)
(if (<= x y) y
(tarai (tarai (1- x) y z) (tarai (1- y) z x) (tarai (1- z) x y))))
TARAI
* (time (tarai 13 7 0))
Evaluation took:
1.342 seconds of real time
1.341608 seconds of total run time (1.341608 user, 0.000000 system)
100.00% CPU
3,407,258,575 processor cycles
0 bytes consed
13
* (time (tarai 14 8 0))
Evaluation took:
10.218 seconds of real time
10.202466 seconds of total run time (10.202466 user, 0.000000 system)
99.84% CPU
25,753,160,443 processor cycles
0 bytes consed
14
*
最近のコメント