Skip to content

Environment Variables Controlling CPU Features

Matt Witherspoon edited this page Jan 26, 2025 · 1 revision

Spring will automatically utilize various CPU instruction set extensions to improve performance. For testing purposes these can be disabled through environment variables.

environment variable description
BLS_DISABLE_BMI2 When set to any value, disables BMI2 and ADX instructions in BLS12-381 library.
OPENSSL_ia32cap Controls boringssl feature usage. Example: OPENSSL_ia32cap=":~0x20000000" to disable SHANI.
SPRING_DISABLE_FSGSBASE When set to any value, disables FSGSBASE instructions. Spring 1.1+
Clone this wiki locally