Go from slow code to fast code

Functio discovers code patches for improved performance.

Case study: ClickHouse

Measurable performance improvements

Results from pilot with ClickHouse

0+

Lines of code optimized

Throughout 100s of files

0%

Latency Reduction

Max performance improvement on a query

0+

Queries optimized

With no changes in functionality and verified benchmarking numbers

Optimization Workflow

Get only verified results

Specify a functionality that Functio needs to profile, and get code patches that improve performance with real benchmarking results, while preserving functionality

Background
Making Search in ImHex 2x faster

Optimized ImHex's search functionality through precomputed lookup tables and dependency chain splitting, achieving 2x end-to-end improvement and 5x microbenchmark speedup.

Making Search in ImHex 2x faster

Lookup Tables & Chain Splitting

Read Case Study →
Making Boxblur in FFmpeg 2.5x faster

Delivered a carefully optimized AVX2 kernel that reduces inner‑loop overhead and exploits wide data parallelism, achieving 2.5x speedup without altering boundary handling.

Making Boxblur in FFmpeg 2.5x faster

SIMD & AVX2 Acceleration

Read Case Study →
Making arrayJoin queries in ClickHouse 66% faster

Reduced redundant loads, placed compiler branch prediction hints, and changed swaps to be direct, achieving incredible 66.1% increase in rows per second.

Making arrayJoin queries in ClickHouse 66% faster

Branch Hints & Load Optimization

Read Case Study →

From bottleneck to speed in one command

Functio automates the entire optimization workflow — profiling, benchmarking, code generation, recompilation and correctness verification.

Profile

Leverage compiler reports, perf, gdb, and other tools to pinpoint bottlenecks in real time.

Verify

Capture the functionality of the original code on built-in tests and generated tests

Optimize

Find the most optimal implementation for a specific functionality.

Verify

Validate correctness on all inputs and measures cycle-level performance gains.

Join the e-mail list

Get news and updates on Functio

50+ developers already joined