<div dir="ltr">Oddly<br><br>ray@rpr:~$ time racket r.rkt<br><br>real 0m0.052s<br>user 0m0.040s<br>sys 0m0.012s<br><br>ray@rpr:~$ time racket tr.rkt<br><br>real 0m0.958s<br>user 0m0.876s<br>sys 0m0.080s<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 10:35 AM, Sam Tobin-Hochstadt <span dir="ltr"><<a href="mailto:samth@ccs.neu.edu" target="_blank">samth@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, May 8, 2013 at 6:19 AM, Carl Eastlund <<a href="mailto:cce@ccs.neu.edu">cce@ccs.neu.edu</a>> wrote:<br>
><br>
> I see just under 5 seconds for test.rkt and just over 5 seconds for<br>
> utest.rkt. So there's a fraction of a second extra startup time for Typed<br>
> Racket, but it takes less time for each subsequent computation, so the<br>
> difference depends on how much "real" work you do after startup. I don't<br>
> know what causes that startup cost, but hopefully this kind of benchmark<br>
> will be useful to the Typed Racket maintainers in closing the gap for future<br>
> versions. So, thanks for the example, Manfred!<br>
<br>
</div>This is all true, and you can see it in simpler examples. The empty modules:<br>
<br>
#lang typed/racket/base<br>
<br>
and<br>
<br>
#lang racket/base<br>
<br>
have the following timings:<br>
<br>
[samth@hermes:~/tmp plt] time racket test.rkt<br>
<br>
real 0m0.592s<br>
user 0m0.516s<br>
sys 0m0.064s<br>
[samth@hermes:~/tmp plt] time racket test2.rkt<br>
<br>
real 0m0.065s<br>
user 0m0.040s<br>
sys 0m0.024s<br>
<br>
So you can see about 500 ms of extra overhead. Most of this time is in<br>
loading and executing the runtime dependencies of Typed Racket, which<br>
aren't used here, but which the implementation architecture of Typed<br>
Racket makes it basically impossible to reduce. We've worked hard to<br>
reduce this cost, but it's hard to go much further.<br>
<span class="HOEnZb"><font color="#888888"><br>
Sam<br>
</font></span><div class="HOEnZb"><div class="h5">____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</div></div></blockquote></div><br></div>