The article explains how JavaScript variable lookup and lexical scope are determined during compilation by the V8 engine, covering the language's compiled‑and‑interpreted nature, JIT optimizations, AST generation, lazy parsing, dynamic lookups, and bytecode creation to demystify runtime performance.
This article explains how JIT compilation can eliminate safepoint polls in hot loops, causing unexpected thread blocking, and demonstrates how to reproduce, verify, and resolve the issue using JITWatch and JVM options.
Pyston 2.3.5, a fork of CPython 3.8 maintained by Anaconda, delivers double‑digit performance gains for network‑service workloads, offers two‑fold speedups on micro‑benchmarks like chaos.py and nbody.py, and remains highly compatible with the full CPython feature set and C API.
Although a common belief claims that Java's try‑catch blocks severely degrade performance, this article dissects JVM exception handling, bytecode generation, and JIT/AOT optimizations, presents detailed test code and benchmarks, and demonstrates that when no exception occurs, the overhead is negligible.
This article investigates the common belief that Java's try‑catch blocks severely degrade performance by examining JVM exception handling mechanisms, analyzing compiled bytecode, and presenting extensive benchmark tests under various JVM compilation modes to determine the real impact of exception handling on execution speed.
The first release candidate of PHP 8.2.0 (RC1) has been published, introducing trait constants, a new Random extension, enhanced JIT support, updated MIME types for the built‑in web server, memory optimizations, new socket and Curl options, additional ZipArchive methods, and several performance and cross‑platform improvements.
This article explains the JVM's Just‑In‑Time compilation mechanism and CodeCache memory area, detailing the purpose and default values of key JIT parameters such as TieredCompilation, CompileThreshold, OnStackReplacePercentage, CICompilerCount, as well as CodeCache settings like InitialCodeCacheSize, ReservedCodeCacheSize, Xmaxjitcodesize, CodeCacheMinimumFreeSpace and UseCodeCacheFlushing, and provides practical tuning advice for high‑traffic Java services.
This article introduces Python decorators, explains how they can modify function behavior, and provides practical examples of eight useful decorators—including @lru_cache, @jit, @do_twice, @count_calls, @dataclass, @singleton, @use_unit, and @singledispatch—along with code snippets that demonstrate their implementation and benefits.
The article details a real‑world case where JVM C2 CompilerThread CPU spikes during service startup caused request timeouts and GC pressure, explains how profiling identified the JIT compilation as the root cause, and describes a warm‑up replay strategy that pre‑compiles hotspot code to eliminate the spikes and stabilize deployments.
This article explores how to reduce Go's heavy runtime by replacing its entry point, demonstrates building a minimal Go runtime, implements a simple Python JIT compiler in Go, and shows how to create a self‑hosted Go compiler using LLVM IR, complete with code examples and optimizations.
The article demonstrates three advanced Go techniques—eliminating the standard runtime by custom entry points, building a simple Python JIT compiler that translates bytecode to optimized machine code, and bootstrapping the Go compiler itself via AST‑to‑LLVM translation—offering practical code examples that reveal compiler internals.
The article explains how CPython 3.11 achieves a 1.25‑times speed boost over 3.10 through a new adaptive bytecode interpreter, outlines the goals of the Faster‑CPython project and PEP 659, and discusses the planned JIT compiler for future Python releases.
hyengine is a lightweight, high‑performance mobile execution engine that unifies WebAssembly, JavaScript, Python and Lua via a compiler and VM, offering JIT compilation, register allocation, inline‑cache optimizations, a custom allocator (hymalloc) and a concurrent three‑color garbage collector (hygc), achieving substantial speed‑ups on macOS and Android.
When a Java application launches, initial requests often feel sluggish because the JVM relies on an interpreter, but as frequently executed code becomes hot, JIT compilation translates it into optimized native machine code, dramatically improving response times—a process explained along with practical strategies like Dragonwell’s JWarmUp and request pre‑warming to accelerate performance.
The article explains why Java applications often experience high latency during the first few requests after startup, describes the role of the JVM interpreter and JIT compilation in creating hotspot code, and offers practical solutions such as JIT warm‑up techniques and traffic pre‑warming to improve performance.
This article explores several methods for creating PHP extensions—including native C, Zephir, php-cpp, php-x, and CGO—provides sample code, describes compilation steps, and compares their execution speed using a Fibonacci benchmark with and without PHP JIT.
This article introduces hyengine, a lightweight, high‑performance engine designed to run multiple scripting languages such as JavaScript, WebAssembly, and Python on mobile devices, detailing its architecture, JIT compilation, optimizer passes, memory allocator, garbage collector, and performance benchmarks compared to LLVM and other runtimes.
This article explains the core concepts of compilation and interpretation, compares static and dynamic languages, and walks through the V8 engine’s workflow—including parsing, bytecode generation, JIT compilation, and TurboFan optimizations—providing concrete code examples and command‑line tips.
This article explains the fundamental principles behind JavaScript execution, covering the distinction between interpreted and compiled languages, the architecture of JavaScript engines (including V8, SpiderMonkey, and JavaScriptCore), runtime environments, the single‑threaded event loop, call‑stack processing, lexical analysis, parsing, bytecode, JIT compilation, and the role of Web Workers in off‑loading CPU‑intensive tasks.
This article examines the performance of four Java integer-to-string conversion methods—Integer.toString, String.valueOf, a+"", and ""+a—by conducting raw loop tests and detailed JMH microbenchmarks, analyzing JVM warm-up, JIT, and OSR effects to reveal reliable measurement practices.
This article provides a comprehensive guide on YOLOv5, covering its background from YOLOv3, detailed code analysis of the model architecture, step‑by‑step instructions for running detect.py, configuring yolov5s.yaml, exporting the model to TorchScript JIT and ONNX formats, and practical inference examples using PyTorch and ONNX Runtime.
This article explores the V8 JavaScript engine’s architecture, from its historical origins and source‑code acquisition to its loading strategies, lexical analysis, parsing, compilation, and execution optimizations, illustrating how V8 achieves high performance in browsers and Node.js.
This article explains the architecture of the OpenJDK HotSpot JVM, covering bytecode execution, JIT compilation, garbage collection, ergonomic defaults, configuration options, their lifecycle, and practical tuning advice to help developers optimize Java applications for various environments.
The tutorial walks through building a complete LLVM‑based Kaleidoscope compiler—from a tokenizing lexer and recursive‑descent parser, through AST construction, LLVM IR generation with SSA and phi nodes, optimization passes, JIT execution, and mutable variable handling via stack allocation—providing full C++ source examples.
In this interview, Java creator James Gosling discusses the language’s history, the trade‑offs of breaking changes, the benefits of static typing, JIT performance, async/await, pattern matching, and the broader challenges of modern programming language ecosystems.
The article explains how V8’s built‑in methods, originally placed far from JIT‑generated code, cause costly branch‑prediction failures on 64‑bit CPUs, and how copying these snippets into a nearby memory region reduces mispredictions and improves performance at a modest memory cost.
The article explains how intermittent latency spikes (jitter) in a high‑throughput service can be triggered when the JVM’s Just‑In‑Time compiler activates, detailing interpreter vs. JIT, C1/C2 tiered compilation, hot‑spot detection thresholds and compilation stages, and recommends pre‑warming code, disabling tiered compilation, or tuning thresholds and JVM flags to eliminate jitter.
The article explains how adopting Just‑In‑Time (JIT) thinking and lean‑startup validation can help product teams filter out 80% of low‑value requests, accelerate delivery, reduce overtime, and align development effort with the most valuable business outcomes.
This article explains the complete lifecycle of JavaScript execution in the V8 engine, covering language fundamentals, AST generation, bytecode compilation, interpretation, just‑in‑time optimization, hidden classes, inline caches, and other performance strategies used by both browsers and Node.js.
This article explains how the V8 engine parses JavaScript into an AST, generates bytecode, employs lazy compilation, caches machine code, and uses the TurboFan optimizing compiler with JIT techniques to balance speed and memory consumption during script execution.
Released in October 2020, Pyston v2 is a JIT‑based Python implementation that delivers roughly 20% speed improvements over CPython 3.8 in macro‑benchmarks, offers easy deployment, maintains high compatibility with CPython, and incorporates techniques such as DynASM JIT, quickening, and process‑building optimizations.
This article explores the differences between Python interpreters, explains why PyPy often runs faster than CPython through JIT compilation, compares performance across several languages, and offers practical optimization techniques for Python code, all backed by code examples and benchmark results.
This article explains how the PyPy interpreter dramatically speeds up Python code through just‑in‑time (JIT) compilation, compares its performance to CPython and C, and provides a practical example demonstrating the runtime gains.
The article explains how PyPy’s just‑in‑time compilation can make Python code run faster than even native C implementations, demonstrates benchmark results comparing default Python, PyPy, and C, and outlines the differences between ahead‑of‑time compilation, interpretation, and JIT.
This article introduces Numba, a Python just‑in‑time compiler, explains why it’s advantageous over alternatives, and provides detailed guidance on using its decorators such as @jit, @njit, @vectorize, and @cuda.jit, including code examples for CPU and GPU acceleration.
Phoronix benchmarked PHP 8 (including a JIT‑enabled build) against multiple older PHP versions, showing a modest 7% improvement over PHP 7.4 but a dramatic 92% boost with JIT, making PHP 8 + JIT roughly five times faster than PHP 5.4.
This article provides a concise, English‑language guide to GraalVM, covering its high‑performance JIT compiler, native‑image generation for instant‑start binaries, and polyglot capabilities for running Java, JVM languages, JavaScript, Python, Ruby, R, and more, with key commands and options.
This article details a step‑by‑step performance tuning journey for a Java‑based SOA service, covering thread‑pool redesign, memory‑allocation adjustments, and JIT compilation tweaks that together lifted QPM by nearly 40% and overall system throughput by about 50%.
This article introduces JMH, the Java Microbenchmark Harness, explains why traditional main‑method benchmarks are unreliable, and provides step‑by‑step instructions, code examples, and best‑practice annotations for accurately measuring method‑level performance in Java applications.
This article explains the role of Java's Just‑In‑Time compiler, how HotSpot combines interpretation and compilation, the mechanisms for hotspot detection, the differences between C1 and C2 compilers, performance testing across modes, and the key optimization techniques that make JIT‑generated code faster.
This article provides a comprehensive, English‑language walkthrough of Java Serviceability Agent (SA), covering how to obtain and analyze JVM internal structures, the memory model and Linux process layout, the oop/klass split, JIT compilation mechanics, and the implementation of tools such as jmap and jstack, all illustrated with code snippets and diagrams.
Although Python is slower than C, Java, or JavaScript for CPU‑intensive tasks, several projects—including PyPy, Pyston, Nuitka, Cython, and Numba—offer distinct approaches such as JIT compilation, LLVM back‑ends, or C conversion to significantly improve Python’s runtime performance.
PHP 8.0 introduces a suite of major enhancements—including named arguments, union types, attributes, constructor property promotion, match expressions, null‑safe operator, and especially JIT compilation—aimed at improving performance, type safety, and overall language consistency.
Phoronix’s benchmark of PHP 8 (built from the latest Git source) compares it with previous PHP releases, showing modest gains for the stable version but a dramatic 92% speed increase when JIT is enabled, while also revealing mixed results across different test suites due to I/O bottlenecks.
The article outlines the major enhancements introduced in PHP 8.0, including the Just‑In‑Time compiler, performance optimizations, built‑in JSON support, named parameters, attributes, union types, static return types, new string functions, the nullsafe operator, and provides download links and further reading resources.
This article examines the community’s expectations for Python 4, compares past version transitions, highlights Guido van Rossum’s clarification that Python 4 should remain compatible with Python 3, and discusses the performance improvements needed for a successful upgrade.
Java’s JIT compilation transforms bytecode into optimized native code at runtime using tiered C1 and C2 compilers—or Graal—to apply SSA, inlining, escape analysis, loop unrolling, and other optimizations, while profiling‑driven thresholds and tuning flags let developers balance startup speed, peak throughput, and latency.
The article introduces Facebook's HipHop VM (HHVM) as a PHP JIT compiler, highlights the performance gains and memory savings, details the release of version 4.75 with its supported versions, and outlines new highlights and upcoming deprecations such as the removal of is_array().
This article demystifies the JVM’s memory architecture and execution engine, walking through class loading, the runtime data areas, JIT versus interpreter, and native interactions, complemented by clear diagrams to help developers understand how Java manages memory and executes code.
This article provides a concise, step‑by‑step tutorial for downloading, compiling, and installing PHP 8.0 Alpha 1 on a CentOS 7 system, configuring essential extensions, setting up PHP‑FPM, verifying the installation, and evaluating the new JIT feature with benchmark results.
This article provides a detailed, Linux‑based tutorial for downloading, configuring, compiling, and installing PHP 8.0 Alpha on CentOS 7, including handling common configure errors, setting up PHP‑FPM, verifying the installation, and testing the new JIT feature with benchmark results.
Phoronix benchmarked multiple PHP versions, including PHP 8 with and without JIT, revealing that PHP 8 offers modest gains over PHP 7.4 but a dramatic 92% speed increase when JIT is enabled, while older versions lag far behind.
Phoronix’s benchmark of PHP 8 (built from the latest Git source) compares it with PHP 7‑4, older 7.x releases, and legacy 5.x versions, showing a modest 7% speed gain without JIT and a dramatic 92% improvement when JIT is enabled, while highlighting I/O bottlenecks that limit gains in some tests.
libgccjit, an embedded GCC JIT library, has been experimentally ported to Windows, with developers overcoming libtool and Automake differences, handling DLL creation, and noting GPLv3 licensing implications, demonstrating the feasibility of GCC JIT on Windows despite limited adoption prospects.
This article explores how adding print statements, using Thread.sleep, and employing Integer objects affect thread safety in Java, illustrating why a non‑volatile flag can cause infinite loops, how synchronized I/O and sleep influence memory visibility, and why seemingly unrelated changes sometimes make the program terminate.
The article explains how the JVM selectively compiles frequently executed Java code into optimized native code, demonstrates significant performance improvements through JIT compilation with two demo programs, and highlights the trade‑offs between interpretation and compilation for hotspot methods.
This article explains why Python is popular yet slower than compiled languages, introduces PyPy as a drop‑in replacement for CPython that uses JIT compilation to accelerate code by an average of 7.6×, and outlines its workings, benefits, and limitations.
The article explains PostgreSQL 11’s new JIT expression compiler, describes how it was benchmarked using the TPC‑H Q1 query on a 22 GB dataset, presents performance improvements over PostgreSQL 10, and provides details on the testing environment, configuration files, and future expectations.
This article explains the internal workings of Java reflection, from obtaining Method objects via getMethod and getDeclaredMethod to the invoke process, and details why reflection incurs significant performance overhead due to argument boxing, visibility checks, parameter validation, lack of inlining, and JIT optimization limits.
This article explains the Java Virtual Machine’s architecture, covering its role as the JRE implementation, the three main subsystems—class loader, runtime data area, and execution engine—and detailing components such as class loading phases, memory areas, the interpreter, JIT compiler, and garbage collection.
This article explains the three-stage execution process of JavaScript in V8, compares interpreter and compiler approaches, describes how the JIT combines their strengths, and provides practical tips for writing JavaScript that maximizes performance by leveraging V8’s optimization mechanisms.
Evaluating Dart’s AoT, AppJIT, Kernel, and JIT compilation for server‑side FaaS shows AoT yields the fastest runtime (≈6× JIT), AppJIT with aggressive optimization slightly outperforms Kernel, startup latency rivals Java, and for long‑running services JIT modes with tuning provide comparable throughput while minimizing build time.
This article explains how PHP’s upcoming JIT compiler and the PHP 8.0 release aim to improve performance, why the gains are most noticeable in CPU‑bound code, and what developers can expect from these new features.
Julia, a free open‑source high‑performance dynamic language, combines the ease of scripting with compiled speed, offering JIT compilation, multiple dispatch, and rich scientific libraries, and with its 1.0 release it now boasts strong benchmarks, robust tooling, and growing industry adoption.
The article explains why CPython often runs slower than compiled or JIT‑enabled languages by examining the Global Interpreter Lock, the interpreted nature of Python, its dynamic typing, alternative runtimes, and practical optimisation techniques for improving performance.
This article shares Vipshop’s extensive Java performance‑optimization experience, introduces the open‑source VJTools project for profiling and troubleshooting, and presents practical insights on common pitfalls, reliable techniques, JIT fundamentals, micro‑benchmarking, useful tools, and real‑world case studies from Vipshop’s architecture.
This article explains Java's traditional JIT compilers, introduces Graal as a modular Java‑level JIT and AOT compiler, compares its optimizations with HotSpot's C2, and provides practical steps to enable Graal in Java 10, offering deeper insight into JVM performance tuning.
This article explains the internal structure of the Java Virtual Machine, covering how class files are loaded, the constant‑pool and attribute formats, stack‑frame execution, JIT compilation, escape analysis, and Java memory‑model concepts such as volatile and thread‑safety.
Java’s JIT compilation transforms bytecode into optimized machine code at runtime, offering benefits like hardware-specific optimization and portability, and the article explains compilation types, JVM flags for tracing JIT activity, inlining, and other optimizations such as dead code elimination and loop transformations.
The QQ Member Activity Platform upgraded its legacy PHP 5.2/Apache 2.0 stack to PHP 7.0 with Apache 2.4 through staged migrations, extensive extension refactoring, and rigorous debugging, ultimately achieving roughly double the request‑handling performance and significant hardware cost savings while maintaining service stability.
This article provides a comprehensive overview of HotSpot JVM fundamentals, a step‑by‑step Java fault‑diagnosis methodology, practical data‑collection techniques, key JVM and system flags, and detailed case studies covering CPU‑load spikes, performance degradation, OOM incidents, and crashes.
PHP 7.0, released after a decade of development, delivers more than double the speed of PHP 5 and rivals Facebook’s HHVM by cutting memory usage, optimizing CPU cache behavior, and tackling the challenges of adding a JIT compiler to a dynamic language.
This article examines the PHP7 alpha release, detailing how its revamped Zend engine, memory management, hash handling, and new opcodes dramatically improve execution speed, while also introducing type declarations, exception handling, anonymous classes, and the Swoole extension for asynchronous programming.
This article examines why Python’s execution speed can lag behind compiled languages and presents five practical approaches—using alternative runtimes like PyPy, JIT‑based implementations such as Pyston, compilation tools like Nuitka, C extensions via Cython, and JIT acceleration with Numba—to improve Python performance.
This article explains the role of Java compilers, compares static, client, server and tiered compilation, and describes common JVM optimizations such as dead‑code elimination, inlining, and loop transformations to improve Java application performance.
This article provides a comprehensive overview of the Java Virtual Machine, explaining its role in enabling "write once, run anywhere," detailing the compilation process, JIT optimization, memory allocation strategies such as TLAB, various garbage‑collection algorithms, and how these factors impact Java application performance and scalability.
HHVM, Facebook’s high‑performance PHP virtual machine, uses a type‑driven tracelet JIT and custom bytecode to achieve up to nine‑fold speed gains, making runtime optimization the only practical solution for Facebook’s massive codebase while requiring careful compatibility testing, memory management, and Hack language support.