Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Benchmarking JavaScript

GOTO Conferences via YouTube

Overview

Explore JavaScript benchmarking techniques and performance optimization in this GOTO Chicago 2015 conference talk. Delve into the complexities of JavaScript VMs, browser performance, and compiler optimizations. Learn about loop invariants, dead code elimination, and how to write smarter benchmarks. Discover the impact of micro-benchmarks on VMs and how they can uncover bugs. Examine real-world examples, including the speaker's "patented blaze" case. Gain insights into various benchmarking tools, interesting modes, and constant faults. Understand the importance of presumption of innocence and avoiding hasty conclusions when interpreting benchmark results. Analyze different benchmark types, including method call speed tests and concurrent modification benchmarks. Acquire practical tips to speed up your JavaScript code and avoid common benchmarking pitfalls.

Syllabus

Intro
Complexity
Benchmarking
Browsers
Compiler
Loop invariant
Dead code elimination
How to write smarter benchmarks
Loop unrolling
Micro benchmarks vs VMs
How benchmarks find bugs in VMs
What happened with my patented blaze
The Tool
Interesting Mode
Constant Fault
Fix
presumption of innocence
jumping to conclusions
benchmark example
note
speed test
light
twice
multiple optimized versions
tags
counter
desert
methyl colon function
benchmark
method call speed
speed your JavaScript
no function benchmark
function call benchmark
concurrent modification benchmark
dont benchmark things
back in v8

Taught by

GOTO Conferences

Reviews

Start your review of Benchmarking JavaScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.