Dart vs. JavaScript: A Benchmarked Comparison of Two Client-Side Languages
CSEF · 2014 Mathematics & Software
Overview
Objectives/Goals The project compares Dart and JavaScript, two programming languages, using the Kraken Benchmark. Methods/Materials Dart and JavaScript are both client-side languages; they run on the user's computer when a website is loaded. They allow for interactivity within websites. Dart is Google's replacement for JavaScript, as JavaScript contains numerous problems. The Kraken Benchmark is a series of tests, approximately 100,000 lines of code long, which is typically used to measure the speed of JavaScript in various browsers. The investigator translated the Kraken Benchmark into Dart, then ran the benchmark in both Dart and JavaScript 25 times. The speeds were then compared. Results While it was hypothesized that Dart would be much faster than JavaScript, Dart was in fact much slower, taking almost four times as long to run the tests. Conclusions/Discussion Dart is not yet ready for widespread use. This has real-world implications, as everybody is looking for ways to maximize browser speeds, especially on mobile devices.
Summary statement
The project, by comparing the speeds of Dart and JavaScript using the Kraken Benchmark, which the experimenter translated into Dart, demonstrated that Dart is not yet ready for widespread use.
Help received
Father helped edit writeup
Competition history
- CSEF 2014
Resources
Related projects
CSEF · 2003
The Need for Speed: Testing the Execution Speed of Today's Popular Computer Languages
CSEF · 2012
Which Web Browser Is the Fastest?
CSEF · 2008
JavaScript Sudoku Corrector
CSEF · 2010
Turbo Charging Computer with Mathematical Algorithms
CSEF · 2002
C vs C++
CSEF · 2014
How Fast Is Your Computer? The Benchmarking Process
CSEF · 2013
Developing High-Performance Hybrid iOS Apps
AJAS · 2022
Lucia.js: Creating Performance-Focused Web Applications
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: California Science & Engineering Fair public projects