Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8965707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:52:04+00:00 2026-06-15T16:52:04+00:00

I installed Eclipse 3.7 version JavaEE for Win64, and then followed installation instructions for

  • 0

I installed Eclipse 3.7 version JavaEE for Win64, and then followed installation instructions for Ateji from the manual version 1.2.

The results I get from running the speedup example for I = J = 100000:

PERFORMANCE COMPARISON BETWEEN SEQUENTIAL AND PARALLEL COMPREHENSIONS

sequential sum:
    `+ for (int i : I, int j : J) (i*j);
parallel sum:
    `+ for || (int i : I, int j : J) (i*j);
data size : I = 100000; J = 100000

Wait for the result...
sequential sum: mean time = 202 ms; standard deviation = 1 ms; ( 8473 8460 203 202 202 204 203 202 205 202 203 202 203 204 203 202 204 202 203 203 )
parallel sum: mean time = 2017 ms; standard deviation = 961.311 ms; ( 1787 1800 1790 1847 1457 1442 1698 1457 1455 1439 1467 4083 3239 1461 1458 1469 1470 1469 3077 4311 )

Speed up = 0.10014873574615767
Available processors = 8

My monitor for processor activity shows that the 4 cores are indeed used in the parallel task.
The hello world example works (“hello” and “world” get printed, in random order).
I checked the troubleshooting section of the Ateji manual and all is correct (I used a JDK and a JRE 1.7)

Where could the problem come from? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:52:05+00:00Added an answer on June 15, 2026 at 4:52 pm

    What teaches this surprising result is that you shouldn’t rely on microbenchmarks.

    On my 4 core laptop, I get the expected speedup with a Java6 VM (1.6.0_22-b04 HotSpot(TM) 64-Bit Server):

    sequential sum: mean time = 383 ms; standard deviation = 83,319 ms;
    parallel sum: mean time = 114 ms; standard deviation = 22,271 ms;
    Speed up = 3.3596491228070176
    

    On the same machine, I get the surprising result you mention with a Java7 VM (1.7.0_03-b05 HotSpot(TM) 64-Bit Server):

    sequential sum: mean time = 7 ms; standard deviation = 0 ms;
    parallel sum: mean time = 69 ms; standard deviation = 10,863 ms; 
    Speed up = 0.10144927536231885
    

    Note how the sequential time has been divided by a factor of 50 between the two VM versions !!! This is definitely a sign that a powerful optimization has kicked in.

    A clever VM could go as far as not doing any computation (time = 0ms) since it is possible to express statically the result of the sum as a simple algebraic expression. There must be something in the parallel version of the code that precludes the same optimization, hence the surpringly results you see.

    Indeed, if you change the summation expression to the more realistic

        `+ for (int i : I, int j : J) (x[i]*y[j])
    

    where summands are taken from input arrays, so the sum cannot be optimized away, then you get speed-up results more in line with your expectations:

    JRE6

    sequential sum: mean time = 436 ms;
    parallel sum: mean time = 156 ms; standard deviation = 35,086 ms;
    Speed up = 2.7948717948717947
    

    JRE7

    sequential sum: mean time = 163 ms; standard deviation = 4 ms;
    parallel sum: mean time = 78 ms; standard deviation = 15,362 ms;
    Speed up = 2.08974358974359
    

    The lower speedup figures are due to concurrent access to the arrays x and y. Using a local copy of the array for each core would probably provide a speedup close to 4 as in the original example.

    Patrick

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Eclipse SDK Version: 3.5.2 with EPIC 0.5.46 installed on Ubuntu Linux .
I've already got Eclipse for PHP-developers installed. Must I install a new version for
Say I have Eclipse installed in office and home. Both are Eclipse version 3.5
I've installed the Web Tools Project for Eclipse version 3.4. I've been trying to
I installed the 32 bit Linux version of Eclipse for Java EE Developers on
I installed the eclipse web page editor from the help->updates->Ganymede Update Side-> Web and
I installed Eclipse from the repository using the synaptic package manager under Ubuntu 10.04
I have installed Eclipse: Eclipse Java EE IDE for Web Developers. Version: Helios Service
I installed JDK 7 and Eclipse 3.6M6 . Then, I added JRE 7 as
I have downloaded and installed Eclipse for PHP Developers from here: http://www.eclipse.org/downloads/ I also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.