;;; -*- mode: scheme; coding: utf-8; -*-
;;; Integer arithmetic.
;;;
-;;; Copyright 2010 Free Software Foundation, Inc.
+;;; Copyright 2010, 2012 Free Software Foundation, Inc.
;;;
;;; This program is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU Lesser General Public License
\f
(with-benchmark-prefix "fixnum"
- (benchmark "1+" 1e7
+ (benchmark "1+" #e1e7
(repeat (1+ <>) 2 100))
- (benchmark "1-" 1e7
+ (benchmark "1-" #e1e7
(repeat (1- <>) 2 100))
- (benchmark "+" 1e7
+ (benchmark "+" #e1e7
(repeat (+ 2 <>) 7 100))
- (benchmark "-" 1e7
+ (benchmark "-" #e1e7
(repeat (- 2 <>) 7 100))
- (benchmark "*" 1e7
+ (benchmark "*" #e1e7
(repeat (* 1 <>) 1 100))
- (benchmark "/" 1e7
+ (benchmark "/" #e1e7
(repeat (/ 2 <>) 1 100)))
;;; -*- mode: scheme; coding: utf-8; -*-
;;; R6RS-specific arithmetic benchmarks
;;;
-;;; Copyright (C) 2011 Free Software Foundation, Inc.
+;;; Copyright (C) 2011, 2012 Free Software Foundation, Inc.
;;;
;;; This library is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU Lesser General Public
\f
(with-benchmark-prefix "fixnum"
- (benchmark "fixnum? [yes]" 1e7
+ (benchmark "fixnum? [yes]" #e1e7
(fixnum? 10000))
(let ((n (+ most-positive-fixnum 100)))
- (benchmark "fixnum? [no]" 1e7
+ (benchmark "fixnum? [no]" #e1e7
(fixnum? n)))
- (benchmark "fxxor [2]" 1e7
+ (benchmark "fxxor [2]" #e1e7
(fxxor 3 8)))