[Nexus 5 Original Android Development] dead0:
this is with 0.17: elemental gov, I/o is fiops, stock cpu frequencies with undervolt and a few extra tweaks with init.d scripts.

cpu gov init.d script:

#!/system/bin/sh

echo 2265600 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo 729600 > /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq

# echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 1 > /sys/devices/system/cpu/cpu0/online

echo elementalx > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo 1 > /sys/devices/system/cpu/cpu1/online

echo elementalx > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

echo 1 > /sys/devices/system/cpu/cpu2/online

echo elementalx > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

echo 1 > /sys/devices/system/cpu/cpu3/online

echo elementalx > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

#elementalx

echo 90 > /sys/devices/system/cpu/cpufreq/elementalx/up_threshold

echo 90 > /sys/devices/system/cpu/cpufreq/elementalx/up_threshold_any_cpu_load

echo 80 > /sys/devices/system/cpu/cpufreq/elementalx/up_threshold_multi_core

echo 50000 > /sys/devices/system/cpu/cpufreq/elementalx/sampling_rate

echo 2 > /sys/devices/system/cpu/cpufreq/elementalx/sampling_down_factor

echo 5 > /sys/devices/system/cpu/cpufreq/elementalx/down_differential

echo 729600 > /sys/devices/system/cpu/cpufreq/elementalx/optimal_freq

echo 729600 > /sys/devices/system/cpu/cpufreq/elementalx/sync_freq

echo 15000 > /sys/devices/system/cpu/cpufreq/elementalx/ui_sampling_rate

echo 60 > /sys/devices/system/cpu/cpufreq/elementalx/ui_timeout

#ondemand

echo 95 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load

echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core

echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

echo 2 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

echo 5 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential

echo 960000 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq

echo 960000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq

extra tweaks init.d script:

#!/system/bin/sh

# imoseyon mods

echo "5" > /proc/sys/kernel/panic

echo "0" > /proc/sys/kernel/panic_on_oops

echo "20" > /proc/sys/vm/dirty_background_ratio

echo "30" > /proc/sys/vm/dirty_ratio

# echo "1000" > /proc/sys/vm/dirty_expire_centisecs

# echo "500" > /proc/sys/vm/dirty_writeback_centisecs

echo "8192" > /proc/sys/vm/min_free_kbytes

echo "1" > /proc/sys/vm/oom_kill_allocating_task

# echo "0" > /proc/sys/vm/swappiness

# echo "30" > /proc/sys/vm/vfs_cache_pressure

echo "128" > /proc/sys/kernel/random/read_wakeup_threshold

echo "256" > /proc/sys/kernel/random/write_wakeup_threshold

echo "30" > /proc/sys/fs/lease-break-time;

STL=`ls -d /sys/block/stl*`;

BML=`ls -d /sys/block/bml*`;

MMC=`ls -d /sys/block/mmc*`;

for i in $STL $BML $MMC; do

echo "fiops" > $i/queue/scheduler;

echo "0" > $i/queue/rotational;

echo "0" > $i/queue/iostats;

echo "1024" > $i/queue/read_ahead_kb; # default: 128

echo "128" > $i/queue/nr_requests; # default: 128

echo "1" > $i/queue/iosched/fifo_batch;

done;