On Thu, Dec 6, 2012 at 3:32 PM, Neil Toronto <span dir="ltr"><<a href="mailto:neil.toronto@gmail.com" target="_blank">neil.toronto@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 12/06/2012 02:08 PM, Sam Tobin-Hochstadt wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Dec 6, 2012 at 12:44 PM, <<a href="mailto:ntoronto@racket-lang.org" target="_blank">ntoronto@racket-lang.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
| Reimplemented really simple FFI functions (e.g. mpfr-prec, mpfr-exp) to<br>
| avoid calling overhead<br>
</blockquote>
<br>
If you have meaningful benchmarks where this makes a difference, that<br>
may be useful to Matthew, since he recently was working on improving<br>
the FFI's code generation.<br>
</blockquote>
<br></div>
I've got some benchmarks showing via timing loops that pulling a _long directly out of an _mpfr takes just over half the time it takes to call libmpfr to do it. It's enough to make me want to rewrite simple things like `bfnegative?' in Racket.<br>
<br>
I won't, though, if Matthew has near-future Big Plans. Or Medium Plans.<br>
<br>
I see we have "tests/racket/benchmarks". Should I just drop the code there, or is there some kind of procedure or protocol I should follow?</blockquote><div><br></div><div>Generally that directory is for benchmark Racket against other languages, so the program has to be cross-compatible. I think you are talking about a stress test, which can be used to monitor Racket's performance against itself in the future to catch regressions. That's in tests/racket/stress.</div>
<div><br></div><div>Jay</div><div> </div></div>-- <br>Jay McCarthy <<a href="mailto:jay@cs.byu.edu" target="_blank">jay@cs.byu.edu</a>><br>Assistant Professor / Brigham Young University<br><a href="http://faculty.cs.byu.edu/~jay" target="_blank">http://faculty.cs.byu.edu/~jay</a><br>
<br>"The glory of God is Intelligence" - D&C 93<br>
</div>