harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnusson, Geir" <geir.magnus...@intel.com>
Subject Re: More helpful error messages
Date Mon, 27 Mar 2006 05:11:06 GMT
Did you catch it?

 -----Original Message-----
From: 	Mikhail Loenko [mailto:mloenko@gmail.com]
Sent:	Sun Mar 26 21:09:31 2006
To:	harmony-dev@incubator.apache.org; geir@pobox.com
Subject:	Re: More helpful error messages

I've made another test: I've called various methods 5'000'000 times

test1:
    static void a() {
        i++;
    }

test2:
    static void a() throws Exception {
        i++;
        throw new Exception("");
    }

test3:
    static void a() throws Exception {
        i++;
        throw e;
    }


The times were:
test1: 60
test2: 12500
test3: 700

So, the most performnace-expensive operation is creating a new object.

Thanks,
Mikhail

Mime
View raw message