Fix benchmarks to not use collection-path
.
This commit is contained in:
parent
f2ddc66333
commit
10a3140ff1
|
@ -95,16 +95,14 @@
|
||||||
(dynamic-require "fasta.rkt" #f)))))
|
(dynamic-require "fasta.rkt" #f)))))
|
||||||
f))
|
f))
|
||||||
|
|
||||||
|
(define-runtime-path sumcol-input "sumcol-input.txt")
|
||||||
|
|
||||||
(define/kw (mk-sumcol-input n #:optional moments?)
|
(define/kw (mk-sumcol-input n #:optional moments?)
|
||||||
(let ([f (build-path (find-system-path 'temp-dir) (string-append (if moments? "moments-" "sumcol-")
|
(let ([f (build-path (find-system-path 'temp-dir) (string-append (if moments? "moments-" "sumcol-")
|
||||||
(number->string n)))])
|
(number->string n)))])
|
||||||
(unless (file-exists? f)
|
(unless (file-exists? f)
|
||||||
(printf "Building ~a ~a input: ~a\n" (if moments? "moments" "sumcol") n f)
|
(printf "Building ~a ~a input: ~a\n" (if moments? "moments" "sumcol") n f)
|
||||||
(let ([c (with-input-from-file (build-path (collection-path "tests")
|
(let ([c (with-input-from-file sumcol-input
|
||||||
"racket"
|
|
||||||
"benchmarks"
|
|
||||||
"shootout"
|
|
||||||
"sumcol-input.txt")
|
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(if moments?
|
(if moments?
|
||||||
(apply string-append ; like sumcol, but with floats
|
(apply string-append ; like sumcol, but with floats
|
||||||
|
|
Loading…
Reference in New Issue
Block a user