[Verizon Samsung Galaxy S7 Guides, News, & Discussi] psouza4:
Here's my startup script, which fixes quite a few CPU and sleep issues. These values were taken from an unrooted stock image (with one exception for CPU temperature throttling).

#!/system/bin/sh

### Samsung Galaxy S7 / S7 Edge Qualcomm performance fixes and tweaks
### psouza4 . version 2 . 2016-07-08

### Note: most of these values were taken from the stock PE1 image (Verizon's version)

# Throttling
echo 1> /sys/module/msm_core/parameters/disabled
echo 0> /sys/module/msm_core/parameters/polling_interval
echo N> /sys/module/msm_thermal/parameters/enabled
echo 0> /sys/module/msm_thermal/vdd_restriction/enabled

# Throttling: this is the only customized value here, stock is 80
echo 85> /sys/module/msm_core/parameters/throttling_temp

# Correct frequencies and governors
echo interactive> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo interactive> /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo 1593600> /sys/devices/system/cpu/cpufreq/cpufreq_limit/little_max_freq
echo 307200> /sys/devices/system/cpu/cpufreq/cpufreq_limit/little_min_freq
echo 2150400> /sys/devices/system/cpu/cpufreq/cpufreq_limit/big_max_freq
echo 307200> /sys/devices/system/cpu/cpufreq/cpufreq_limit/big_min_freq

# A whole bunch of CPU tweaks
#echo 1478400> /sys/power/cpufreq_max_limit
echo 1593600> /sys/power/cpufreq_max_limit

mkdir -p /sys/devices/system/cpu/cpu0/cpufreq/interactive/
echo 19000> /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay
echo 0> /sys/devices/system/cpu/cpu0/cpufreq/interactive/align_windows
echo 0> /sys/devices/system/cpu/cpu0/cpufreq/interactive/boost
echo 80000> /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration
echo 1> /sys/devices/system/cpu/cpu0/cpufreq/interactive/fast_ramp_down
echo 90> /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load
echo 960000> /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
echo 1> /sys/devices/system/cpu/cpu0/cpufreq/interactive/ignore_hispeed_on_notif
echo 1> /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy
echo 19000> /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis
echo 19000> /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
echo 80> /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
echo 20000> /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate
echo 80000> /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack
echo 1> /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif
echo 1> /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load
echo interactive> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1593600> /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 307200> /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

mkdir -p /sys/devices/system/cpu/cpu2/cpufreq/interactive/
echo '19000 1400000:39000 1700000:19000'> /sys/devices/system/cpu/cpu2/cpufreq/interactive/above_hispeed_delay
echo 0> /sys/devices/system/cpu/cpu2/cpufreq/interactive/align_windows
echo 0> /sys/devices/system/cpu/cpu2/cpufreq/interactive/boost
echo 80000> /sys/devices/system/cpu/cpu2/cpufreq/interactive/boostpulse_duration
echo 1> /sys/devices/system/cpu/cpu2/cpufreq/interactive/fast_ramp_down
echo 90> /sys/devices/system/cpu/cpu2/cpufreq/interactive/go_hispeed_load
echo 1248000> /sys/devices/system/cpu/cpu2/cpufreq/interactive/hispeed_freq
echo 1> /sys/devices/system/cpu/cpu2/cpufreq/interactive/ignore_hispeed_on_notif
echo 1> /sys/devices/system/cpu/cpu2/cpufreq/interactive/io_is_busy
echo 19000> /sys/devices/system/cpu/cpu2/cpufreq/interactive/max_freq_hysteresis
echo 19000> /sys/devices/system/cpu/cpu2/cpufreq/interactive/min_sample_time
echo '85 1500000:90 1800000:70'> /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads
echo 20000> /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_rate
echo 80000> /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_slack
echo 1> /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_migration_notif
echo 1> /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_sched_load
echo interactive> /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
#echo 1036800> /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo 2150400> /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo 307200> /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq

# Reset other settings as well
echo 71061504> /sys/module/dm_bufio/parameters/max_cache_size_bytes
echo 40079360> /sys/module/dm_bufio/parameters/peak_allocated_bytes
echo 1022> /sys/module/fuse/parameters/max_user_bgreq
echo 1022> /sys/module/fuse/parameters/max_user_congthresh
echo N> /sys/module/lpm_levels/parameters/sleep_disabled

# Reset IPv4
echo 1048576> /sys/kernel/ipv4/tcp_rmem_def
echo 2097120> /sys/kernel/ipv4/tcp_rmem_max
echo 524288> /sys/kernel/ipv4/tcp_rmem_min
echo 4194240> /sys/kernel/ipv4/tcp_wmem_max

For the Verizon Galaxy S7 model, I wrote an updatable flash that chains init.d to run this on startup, but you could easily just save it somewhere using Script Manager and then set it to use su and run on boot. That'd make it compatible with any Qualcomm-based Galaxy S7 or S7 Edge.

Enjoy and please give me credit if anyone uses this script in their own work. :)