Feeds

Dart 1.1 bullseyes JavaScript performance in latest benchmarks

Compiled apps now match or beat handwritten JavaScript

High performance access to file storage

Just two months after shipping the first production-ready version of Dart, its JavaScript competitor, Google has offered up a new version that it claims can output code that runs as fast or faster than the equivalent routines written in JavaScript.

Dart has always been fast when running in a native VM. In fact, Dart benchmarks running in Dart VM have consistently outperformed the equivalent JavaScript running in Google's own V8 JavaScript engine. But almost nobody runs client-side Dart applications this way in the real world, because no mainstream browser currently ships with Dart VM. Instead, production Dart web apps are typically "compiled" into JavaScript using dart2js, the Dart SDK's code translator.

That hasn't always worked out so well. Past versions of dart2js have generally produced code that runs slower than it would if the same routines had been hand-written in JavaScript. But according to a blog post by Google developer advocate Seth Ladd, Dart 1.1, which Google released on Thursday, has all but closed that gap.

"Dart2js now generates JavaScript that performs as well as, if not better than, the idiomatic JavaScript equivalent," Ladd wrote.

When compiled to JavaScript, Dart 1.1's performance on the Richards benchmark – a torture test designed to compare the efficiency of systems programming languages – is up 25 per cent when compared to Dart 1.0. Its performance on the more recent FluidMotion benchmark has doubled. You can see the full results of Google's benchmark tests on the Dart project's performance page, here.

Improving client-side performance wasn't the only focus of the new release, either. Ladd said there is growing interest in using Dart for server-side applications – presumably, because it's easy to run Dart VM on a server, among other reasons – and Dart 1.1 includes a number of new features designed to accommodate this.

The new release now supports large files, file copying, process signal handlers, accessing output terminal information, and the UDP networking protocol – the latter of which should make it easier to write streaming media applications in Dart.

In addition, Dart's HTTP stack has been optimized since the last release, latency has been decreased for many I/O operations, and performance of asynchronous operations has been improved.

Dart 1.1 also bundles a souped-up Dart Editor that improves debugging and code completion and offers more descriptive tooltips, in addition to various performance enhancements.

Google has updated the Dart language spec to coincide with this release and it has also published new developer how-tos on writing command-line applications, Dart-JavaScript interoperability, and using data streams.

If you're the type who prefers to just dive right in, however, you can download all of the updated tools, including dart2js and the improved Dart Editor, from the Dart homepage, here. ®

High performance access to file storage

More from The Register

next story
Android engineer: We DIDN'T copy Apple OR follow Samsung's orders
Veep testifies for Samsung during Apple patent trial
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Batten down the hatches, Ubuntu 14.04 LTS due in TWO DAYS
Admins dab straining server brows in advance of Trusty Tahr's long-term support landing
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Windows XP still has 27 per cent market share on its deathbed
Windows 7 making some gains on XP Death Day
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
Windows 8.1, which you probably haven't upgraded to yet, ALREADY OBSOLETE
Pre-Update versions of new Windows version will no longer support patches
Microsoft TIER SMEAR changes app prices whether devs ask or not
Some go up, some go down, Redmond goes silent
Red Hat to ship RHEL 7 release candidate with a taste of container tech
Grab 'near-final' version of next Enterprise Linux next week
prev story

Whitepapers

Securing web applications made simple and scalable
In this whitepaper learn how automated security testing can provide a simple and scalable way to protect your web applications.
Five 3D headsets to be won!
We were so impressed by the Durovis Dive headset we’ve asked the company to give some away to Reg readers.
HP ArcSight ESM solution helps Finansbank
Based on their experience using HP ArcSight Enterprise Security Manager for IT security operations, Finansbank moved to HP ArcSight ESM for fraud management.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Mobile application security study
Download this report to see the alarming realities regarding the sheer number of applications vulnerable to attack, as well as the most common and easily addressable vulnerability errors.