Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Following Up on JavaScript Benchmarks

DZone's Guide to

Following Up on JavaScript Benchmarks

There are many important technologies that have nothing to do with JavaScript, but speaking of the overall impact, JavaScript is probably the top item currently.

· Performance Zone
Free Resource

Download our Introduction to API Performance Testing and learn why testing your API is just as important as testing your website, and how to start today.

Following up on my recent blog post on the truth about traditional JavaScript benchmarks here are a couple of comments I’d like to address. First of all, I’m over-exaggerating quite a bit with the intention to actually trigger a discussion, for example not everyone hated JavaScript with a passion before 2007, there were quite a few developers who already used it daily and who were excited to have a tool that just get’s the job done (for publishing on the web). Also, JavaScript is certainly not the only important technology in software engineering these days, there are many important technologies that have nothing to do with JavaScript. Nevertheless, speaking of the overall impact, JavaScript is probably the top item currently, and here’s why:

Let’s have a look at the most important deployment scenarios that we have for software today, there’s

  • The web platform (client-side).
  • The cloud and server-side.
  • Phones, wearables, and entertainment devices.
  • Game consoles.
  • Windows.

For at least the first three of them, JavaScript is an important component today, in the case of the web platform, it’s even the dominant factor for the overall success. There’s probably no other single technology that has had the same overall impact, even though there are technologies that dominate a certain specific area of software engineering that are not related to JavaScript.

Speedometer

I realized that many folks in the web sphere weren’t even aware of the existence of the Speedometer benchmark. We should change that. Speedometer is definitely not the ideal benchmark, but we learned in 2016 that’s it’s a lot closer to real-world web application patterns than anything we had before. There is an on-going effort to modernize Speedometer to also cover recent technologies ES2015, TypeScript, and Webpack.

I’d like to respond to some criticism that I got for pointing to Speedometer just because V8 cannot win the official Google benchmark anymore: Despite what folks might believe I truly believe in benchmarks as ways to improve the web platform! Competition is key here. But competition has to reflect real improvements, so it’s important to pick the benchmark based on real world applicability, which is honestly very hard to judge. And let’s be completely open and honest here: Apple is clearly setting the bar high for everyone with regards to real-world web performance! This is and will be a major challenge for us, but I’m excited to pick up that challenge!

We have been adding ways to Chrome infrastructure to measure performance from inside the browser, which gave a lot of important insight but is not portable across browsers. From these investigations, I am concluding that Speedometer might be the best proxy for real world performance that is currently available. We will follow up with a detailed blog post about the real world performance effort soon.

Node.js

I’m heavily focusing on the client-side uses of V8 in the blog post. But that doesn’t mean that we don’t care about Node.js. In fact, we do care a lot about Node.js applications nowadays and we are highly interested in ways to measure performance. Currently, we are looking into ways how to use real world Node.js applications like yarn to drive and track performance improvements, but we are only at the beginning. We are also obviously looking at the AcmeAir benchmark. We have built a good relationship with the Node.js community this year, and we’re already seeing a lot of benefits there.

Find scaling and performance issues before your customers do with our Introduction to High-Capacity Load Testing guide.

Topics:
performance ,benchmarks ,javascript

Published at DZone with permission of Benedikt Meurer, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}