l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
April 21: Google Glass
Next Installfest:
TBD
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
Page last updated:
2006 Feb 17 14:05

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] benchmarking (again)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] benchmarking (again)



Peter Jay Salzman wrote:
> I'm benchmarking doubles versus floats using C++, C, and java on Cygwin.
>

>
> Here are the results for the C++ (user time):
>
>             double.cc   float.cc
>    average: 1.546       1.553
>    std dev: 0.050       0.033
>
>    high val 1.596       1.586
>    low val  1.496       1.520

> The timings for Float.java and Double.java are wierd...
>
>    $ time java Float
>    real    0m1.365s
>    user    0m0.015s
>    sys     0m0.061s
>
>    $ time java Double
>    real    0m1.318s
>    user    0m0.015s
>    sys     0m0.015s
>
> What am I to make of the user time here?

I ran these myself with the following results:

[bloom@kartvelian ~]$ time java Double

real	0m3.709s
user	0m3.664s
sys	0m0.012s

[bloom@kartvelian ~]$ time ./double

real	0m0.573s
user	0m0.572s
sys	0m0.000s

I don't know what you're seeing, but it looks odd that your user time
should be so small compared to real time, for this type of processor
bound program. Thus, I don't think this is an optimization problem.

--Ken


-- 
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.