Production Preview
PREVIEW — Comparing production vs preview compiler output. Preview features are NOT yet on Cardano mainnet.

Scalus by Unisay

Production 0.12.1Preview 0.17.0

factorial_naive_recursion

Metric Production Preview Delta
CPU Units (sum) 42521975 32819280 -22.8%
Memory Units (sum) 171790 137235 -20.1%
Script Size (bytes) 57 46 -19.3%
Term Size (AST nodes) 53 41 -22.6%
Total Fee (lovelace) 13834 10975 -20.7%

fibonacci_naive_recursion

Metric Production Preview Delta
CPU Units (sum) 161982627770 115413721337 -28.7%
Memory Units (sum) 626287090 476772473 -23.9%
Script Size (bytes) 77 61 -20.8%
Term Size (AST nodes) 71 54 -23.9%
Total Fee (lovelace) 47816868 35832017 -25.1%

htlc

Metric Production Preview Delta
CPU Units (sum) 336927250 243039183 -27.9%
Memory Units (sum) 952598 627013 -34.2%
Script Size (bytes) 1008 709 -29.7%
Term Size (AST nodes) 1014 720 -29.0%
Total Fee (lovelace) 94378 64337 -31.8%