Sky asked me if anyone had done any simple benchmarks comparing JVM
and PVM at this point. Now, I know we're still at an early stage and
haven't really looked at speed, but a trivial counting and simple
arithmetic benchmark:

piglet$ time java Bench
1.470u 0.080s 0:01.59 97.4%     0+0k 0+0io 5784pf+0w
piglet$ time ./test_prog run.pbc
40.080u 0.030s 0:42.07 95.3%    0+0k 0+0io 137pf+0w

Source files attached so I can humiliate myself in public at a later
stage when someone points out I've done something stupid

Leon

ps my jvm is j2sdk-1.3.1-FCS from blackdown on linux
ps2 oh, and are we calling it pvm? parrotvm?
-- 
Leon Brocard.............................http://www.astray.com/
Iterative Software...........http://www.iterative-software.com/

... I am serious. And don't call me Shirley
class Bench {
    public static void main (String args[]) {
        int q = 1;
        int w = 1;
        int i = 1;
        int j = 1;
        while(q < 10000) {
            w = 1;
            while(w < 10000) {
                i++;
                j += i;
                w++;
                //              System.out.print(q + ", " + w + "\n");
            }
            q++;
        }
    }
}

        set_i_ic I1, 1
        set_i I63, I1
        set_i_ic I1, 1
        set_i I62, I1
        set_i_ic I1, 1
        set_i I61, I1
        set_i_ic I1, 1
        set_i I60, I1
        set I4, 10000
        set I7, 10000
        branch_ic LAAA
LAAE:   set_i I62, 1
        branch_ic LAAB
LAAC:   inc_i I61
        add_i I60, I60, I61
        inc_i I62
LAAB:   lt_i_ic I62, I4, LAAC, LAAD
LAAD:   inc_i I63
LAAA:   lt_i_ic I63, I7, LAAE, LAAF
LAAF:   end

Reply via email to