Code Optimization Overview
Artemis provides a powerful optimization engine that helps you discover the most effective combinations of code versions to improve performance, memory usage, and CPU efficiency.
While version generation produces multiple alternatives for a given target, it is not obvious which one is the best or how it fits in your larger codebase.
With optimization, Artemis:
- Uses a genetic Algorithm to combine your chosen versions
- Validates them with real execution metrics (runtime, memory usage, CPU time, or any custom metric extracted from logs)
- Presents the top 3 best-performing combinations
- Lets you perform additional actions such as git integration, repeated verification, or iterative optimizations
This ensures you not only generate alternatives but also identify the best-fit, production-ready code.
Optimization Workflow
Creating an Optimization
Set up and configure your optimization process:
- Choose versions to include
- Configure benchmark repetitions
- Select runners for execution
- Start the optimization process
Reviewing Optimization Results
Analyze the optimization outcomes:
- Review the top 3 recommended combinations
- Compare performance across runtime, CPU, and memory metrics
- Explore detailed insights per code target
- Select the version that matches your performance goals
Actions on an Optimized Version
Take further actions once you’ve selected an optimized version:
- Run additional evaluations or verifications
- Create new optimizations starting from the current version
- Generate Git changesets, commits, or pull requests
- Download source code or generate detailed reports
Next Steps
After learning about optimization, you can: