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

  • SEARCH
  • Home
  • 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 6668283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:01:30+00:00 2026-05-26T03:01:30+00:00

Google is launching a new language, promising that it has a better performance, but

  • 0

Google is launching a new language, promising that it has a better performance, but how can I evaluate performance in Dart source code?

Let’s take as example the “sun flower” drawFrame method:

  // Draw the complete figure for the current number of seeds.
  void drawFrame() {
    ctx.clearRect(0, 0, MAX_D, MAX_D);
    for (var i=0; i<seeds; i++) {
      var theta = i * PI2 / PHI;
      var r = Math.sqrt(i) * SCALE_FACTOR;
      var x = xc + r * Math.cos(theta);
      var y = yc - r * Math.sin(theta);
      drawSeed(x,y);
    }
  }

If we have lots of seeds, could we add a statement to evaluate elapsed time within for?

  • 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-05-26T03:01:30+00:00Added an answer on May 26, 2026 at 3:01 am

    Google promises better performance later on when there is native dart in the browser.

    For now Dart compiles directly to JavaScript and is larger and slower than writing pure JavaScript.

    The function you have right there is actually identical in pure javascript so the runtime ought to be very nearly the same between compiled dart and a direct javascript version.

    You could compare the compiled-to-JS Dart versus JS at jsperf.com if you really wanted to.

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

Sidebar

Related Questions

after launching your app on google app engine. you can use the 'logs' page
Google results on this one are a bit thin, but suggest that it is
As topic I'm currently in sweden but when launching my map it shows that
Google App Engine has the concept of app versions. i.e., you can have multiple
Google maps in some region can serve traffic information showing the blocked roads and
I tried launching my Google App Engine app on localhost, and got a Django
I'm trying to install Google App Engine with Django 1.1 on Windows. When launching
Launching your app automatically immediately after install is suprisingly tricky. The advice that's out
The greatest example I can think of is the Google Chrome installation. I remember
Am playing youtube video files by launching youtube: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(text2.getText().toString()));

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.