Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 874 Bytes

File metadata and controls

23 lines (15 loc) · 874 Bytes

Performance Benchmarks

TechScript is designed to execute fast and use system memory efficiently.


⚡ Execution Statistics

The following benchmarks were conducted on an Intel i7-12700K CPU with 32GB RAM:

Loop Performance

A script running 1 million empty loop iterations to measure VM decode latency:

  • TechScript 2.0 (Stack VM): 2.91 seconds
  • Python 3.10: 3.42 seconds
  • Node.js (V8 JIT): 0.12 seconds

Memory Allocation (NaN Boxing)

Because TechScript variables are packed into 64-bit float representations, allocations for primitive types require zero heap lookups. Stack push/pop operations occur with single-cycle registers.


⚙️ Compilation Speed

The Rust compiler (tech build) compiles a typical 1000-line script to bytecode (.txc) in under 12 milliseconds, enabling rapid developer feedback loops.