Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35666

Re: Java is faster!

From j4n bur53 <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: Java is faster!
Date 2016-09-29 09:11 +0200
Organization albasani.net
Message-ID <nsieq9$vl9$1@news.albasani.net> (permalink)
References (3 earlier) <ns95v0$m1h$1@dont-email.me> <nsc2qk$uip$1@news.albasani.net> <nse11l$e82$1@dont-email.me> <nsh1l8$cl7$1@news.albasani.net> <nsh4q2$fdv$1@dont-email.me>

Show all headers | View raw


Eric Sosman schrieb:
>      Third, Marko Topolnik's benchmark doesn't seem terribly convincing
> to me (even though it supports First).  It may in fact be correct, but
> there's a lot more going on than the cast vs. no-cast comparison, and
> I'm worried that the difference he's trying to measure may have been
> lost in the noise.  For example, note that the testNoDowncast() method
> does in fact perform at least ten thousand downcasts. testDowncast()
> performs twenty thousand, but comparing 2N to N instead of N to 0 is
> at the very least an eyebrow-raiser.  (In Topolnik's defense, he's
> trying to answer a slightly more specific question than the one we're
> wondering about.)
>
>      So, I hope Jan can show his results.

My test case is an interpreter basically based on a trampolin
architecture(*). So anything that happens in the main loop
of the trampolin is directly visible as speed impact, since
it is multiplied by the high number of interations through
the trampolin.

So micro benchmark results highly apply to this code. And
last time when I went through the code I could eliminate
a cast here and then, by some code movememts and better
typing and I got slightly better results. I have some
measurements, which I could share.

But unfortunately they measure the total of all changes
I did. I also did some more changes, for example was
using an enumerate in one place where before I was
calling new to create an object.

https://en.wikipedia.org/wiki/Trampoline_%28computing%29

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Java is faster! Roedy Green <inquiry@mindprod.com> - 2016-09-25 03:28 -0700
  Re: Java is faster! j4n bur53 <janburse@fastmail.fm> - 2016-09-25 20:05 +0200
    Re: Java is faster! Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-25 14:44 -0400
      Re: Java is faster! j4n bur53 <janburse@fastmail.fm> - 2016-09-26 23:09 +0200
        Re: Java is faster! Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-27 10:51 -0400
          Re: Java is faster! Sebastian <nowhere@nirvana.org> - 2016-09-28 23:50 +0530
            Re: Java is faster! Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-09-28 15:14 -0400
              Re: Java is faster! j4n bur53 <janburse@fastmail.fm> - 2016-09-29 09:11 +0200
    Re: Java is faster! Arne Vajhøj <arne@vajhoej.dk> - 2016-09-29 21:24 -0400
  Re: Java is faster! Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-25 16:37 -0400
    Re: Java is faster! Eric Douglas <e.d.programmer@gmail.com> - 2016-09-26 05:47 -0700
      Re: Java is faster! Robert Klemme <shortcutter@googlemail.com> - 2016-10-04 23:04 +0200
  Re: Java is faster! Arne Vajhøj <arne@vajhoej.dk> - 2016-09-29 21:18 -0400

csiph-web