forked from dyoo/whalesong
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to fix benchmark for list-length, which is failing badly
- Loading branch information
Danny Yoo
committed
Feb 10, 2012
1 parent
e6877c3
commit 6d03550
Showing
7 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#lang planet dyoo/whalesong | ||
|
||
(define (mylen x) | ||
(cond | ||
[(empty? x) | ||
0] | ||
[else | ||
(add1 (mylen (rest x)))])) | ||
"computing length" | ||
(mylen (build-list 100000 (lambda (i) i))) | ||
"done computing length" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
(provide version) | ||
(: version String) | ||
|
||
(define version "1.113") | ||
(define version "1.114") |