Jeff Kuehn <[EMAIL PROTECTED]> wrote on 02/05/2008 02:40:22 PM:

> Is there a recommended or preferred method for measuring performance of 
> an X10 program? (profiler, class library?)

Hi, Jeff,

One way we used for performance measurement so far was
System.nanoTime() (or System.currentTimeMillis()).  There is also
support for abstract performance metrics (ideal time, number of
operations executed, etc) with the -ABSTRACT_EXECUTION_STATS
runtime flag.

> PS. Is there a reason 'import static java.lang.Math;' doesn't work? It 
> would be nice to have access to sin() and log() instead of Math.sin() 
> and Math.log().

The reason it doesn't work is that X10 is currently based mostly
on Java 1.4 source syntax.  We are moving towards supporting the
Java 5 constructs, but aren't there yet.  However, features like
static imports, can be added incrementally -- we'll try to do
this at some point soon.
        Igor
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
X10: Parallel Productivity and Performance (http://x10.sf.net/)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to