File tree Expand file tree Collapse file tree 4 files changed +27
-5
lines changed Expand file tree Collapse file tree 4 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 33(define deps '("base " "typed-racket-lib " "typed-racket-more " "require-typed-check " ))
44(define build-deps '("scribble-lib " "racket-doc " "rackunit-lib " "typed-racket-doc " "at-exp-lib " "gtp-util " "pict-lib " "scribble-abbrevs " "syntax-sloc " "with-cache " ))
55(define pkg-desc "Gradual typing benchmark programs " )
6- (define version "5.2 " )
6+ (define version "6.0 " )
77(define pkg-authors '(ben))
88(define scribblings '(("scribblings/gtp-benchmarks.scrbl " () ("Benchmarks " ))))
99(define compile-omit-paths '("benchmarks " "utilities/sample-gtp-measure-manifest.rkt " ))
Original file line number Diff line number Diff line change @@ -108,6 +108,22 @@ See also the GitHub release notes:
108108@url{https://github.com/bennn/gtp-benchmarks/releases}
109109
110110@itemlist[
111+ @item[
112+ @history[#:changed "6.0 "
113+ @elem{@bold{Major Release}.
114+ Edited all benchmarks to match up typed and untyped code.
115+ Typed code now uses @racket[assert] instead of @racket[cast]
116+ and untyped code uses an untyped version of the same
117+ predicate function.
118+ Reordered functions / methods so that a per-file diff lines
119+ up; the only differences between files now should be
120+ types and @racket[require ] forms.
121+
122+ After, @bm{lnm} has lower overhead because of new asserts
123+ in untyped code.
124+ Both @bm{quadU} and @bm{quadT} have higher overhead,
125+ possibly because Typed Racket fixed a soundness hole in
126+ the meantime (@hyperlink["https://github.com/racket/typed-racket/commit/1643443502a54d557e4043de0d7e0b9a5e41ba7c " ]{1643443 }).}]]
111127 @item[
112128 @history[#:changed "5.0 "
113129 @elem{(1 ) Remove an unused call to @racket[format] in the typed
Original file line number Diff line number Diff line change 8787 (map md5sum (glob (build-path dir "** " "*.rkt " ))))
8888
8989(define BENCHMARK-NAME*
90- (for/list ((x (in-list (directory-list benchmarks-path))))
91- (string->symbol (path->string x))))
90+ (for/list ((x (in-list
91+ (map (compose1 string->symbol path->string)
92+ (directory-list benchmarks-path))))
93+ #:unless (eq? 'compiled x))
94+ x))
9295
9396(define benchmarks-key*
9497 (sort BENCHMARK-NAME* symbol<?)
427430 (void
428431 (clean-directory! src))
429432 (define udir (build-path src untyped-name))
430- (make-modulegraph (glob (build-path udir "*.rkt " ))))
433+ (define rkt* (glob (build-path udir "*.rkt " )))
434+ (unless (pair? rkt*)
435+ (raise-argument-error 'get-modulegraph "directory with .rkt files " udir))
436+ (make-modulegraph rkt*))
431437
432438(define (clean-directory! dir)
433439 (log-gtp-benchmarks-info "cleaning directory '~a' " dir)
Original file line number Diff line number Diff line change 1111 (complete-path->exported-identifiers
1212 (-> path-string? (listof symbol?)))
1313 (make-modulegraph
14- (-> (listof path-string?) modulegraph?))
14+ (-> (and/c pair? ( listof path-string?) ) modulegraph?))
1515 (modulegraph->num-modules
1616 (-> modulegraph? natural?))
1717 (modulegraph->modules
You can’t perform that action at this time.
0 commit comments