Sketch for a performance test.
This commit is contained in:
parent
a37d944da2
commit
93e146e35d
|
@ -2,17 +2,20 @@
|
||||||
|
|
||||||
(require subtemplate/override)
|
(require subtemplate/override)
|
||||||
|
|
||||||
#;(time
|
(time
|
||||||
(syntax-case #'((((0 1 2 3 4 5 6 7 8 9)))) ()
|
(syntax-case #'((((0 1 2 3 4 5 6 7 8 9)))) ()
|
||||||
[((((a b c d e f g h i j) …) …) …)
|
[((((a b c d e f g h i j) …) …) …)
|
||||||
#'(a … … …)]))
|
#'(a … … …)]))
|
||||||
|
|
||||||
#;(time
|
(time
|
||||||
(syntax-case #'((((0 1 2 3 4 5 6 7 8 9)))) ()
|
(syntax-case #'((((0 1 2 3 4 5 6 7 8 9)))) ()
|
||||||
[((((a b c d e f g h i j) …) …) …)
|
[((((a b c d e f g h i j) …) …) …)
|
||||||
(list #'a … … …)]))
|
(list #'a … … …)]))
|
||||||
|
|
||||||
|
;; raco expand this-file.rkt | wc
|
||||||
|
;; shows that there are 160 extra words for each additional level of nesting
|
||||||
|
;; for the following code, between 2 and 5 (inclusive) levels of nesting.
|
||||||
(time
|
(time
|
||||||
(syntax-case #'(((0 1 2 3 4 5 6 7 8 9))) ()
|
(syntax-case #'((((((0 1 2 3 4 5 6 7 8 9)))))) ()
|
||||||
[(((a b c d e f g h i j) …) …)
|
[((((((a b c d e f g h i j) …) …) …) …) …)
|
||||||
(list #'a … …)]))
|
(list #'a … … … … …)]))
|
Loading…
Reference in New Issue
Block a user