[Nexus 6 Android Development] :
Honestly, Benchmarks are somewhat random in my opinion. It seems like you can run them repeatedly with the same settings and get scores with a pretty wide spread.

These settings (everything else is set to stock out of the box) are what I use. Antutu gave them 54k.

#!/system/bin/sh

# Setup CPU freqs in MSM_LIMITER
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq_0
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq_1
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq_2
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq_3
echo elementalx > /sys/kernel/msm_limiter/scaling_governor
echo elementalx > /sys/kernel/msm_limiter/scaling_governor_0
echo elementalx > /sys/kernel/msm_limiter/scaling_governor_1
echo elementalx > /sys/kernel/msm_limiter/scaling_governor_2
echo elementalx > /sys/kernel/msm_limiter/scaling_governor_3
echo 1267200 > /sys/kernel/msm_limiter/suspend_max_freq
echo 300000 > /sys/kernel/msm_limiter/suspend_min_freq
echo 300000 > /sys/kernel/msm_limiter/suspend_min_freq_0
echo 35800 > /sys/kernel/msm_limiter/suspend_min_freq_1
echo 35800 > /sys/kernel/msm_limiter/suspend_min_freq_2
echo 35800 > /sys/kernel/msm_limiter/suspend_min_freq_3

# Disable Bricked, enable IntelliPlug and set it to balanced
echo 1 > /sys/kernel/intelli_plug/intelli_plug_active
echo 0 > /sys/kernel/intelli_plug/full_mode_profile
echo 0 > /sys/kernel/msm_mpdecision/conf/enabled

# Disable Core Control, enable IntelliThermal, lower core limit
echo 1 > /sys/module/msm_thermal/parameters/enabled
echo 76 > /sys/module/msm_thermal/parameters/core_limit_temp_degC
echo 60 > /sys/module/msm_thermal/parameters/limit_temp_degC
echo 0 > /sys/module/msm_thermal/core_control/enabled

# Enable Simple GPU Algorithm
echo 1 > /sys/module/simple_gpu_algorithm/parameters/simple_gpu_activate

# Enable a 250MB zram disk. Unsure if this really helps anything.
echo 262144000 > /sys/devices/virtual/block/zram0/disksize

# Change TCP Congestion
echo westwood > /proc/sys/net/ipv4/tcp_congestion_control

# Enable force fast charge
echo 1 > /sys/kernel/fast_charge/force_fast_charge

# Enable Adaptive LMK
echo 1 > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk

But by cranking the freqs up to max, antutu kicked me down to 48k. So, basically... Benchmarks can be odd, and not give results in the ways that you would expect.

Overall, if the device *feels* smooth... Why do the numbers really matter?

*edit*

Also...

If anyone's good with bash script string manipulation and feels like helping me out.

I'm trying fix the "Top 10 Kernel Wakelocks" section of UKM.

It used to be:

LiveWakelocksKernel)
WL="";
CNT=0;
PATH=/sdcard/wakelocks.txt;
$BB sort -nrk 7 /proc/wakelocks > $PATH;

while read NAME COUNT EXPIRE_COUNT WAKE_COUNT ACTIVE_SINCE TOTAL_TIME SLEEP_TIME MAX_TIME LAST_CHANGE; do
if [ $CNT -lt 10 ]; then
NAME=`$BB echo $NAME | $BB sed 's/PowerManagerService./PMS./;s/"//g'`
TIME=`$BB awk "BEGIN { print ( $SLEEP_TIME / 1000000000 ) }"`;
TIME=`$BB echo - | $BB awk -v "S=$TIME" '{printf "%dh:%dm:%ds",S/(60*60),S%(60*60)/60,S%60}'`;
WL="$WL$NAME: $TIME@n";
fi;
CNT=$((CNT+1));
done < $PATH;
$BB rm -f $PATH;

WL=${WL%??};
$BB echo $WL;
;;

I've broken it into it's own script for testing... What I've gotten so far is to have it read the values I need in the echo. But I'm having a hell of a time getting it to read the output of that into a variable, so that I can do the math/time conversions on the 7th token (should be jiffies) to get it into h/m/s format. Then to be able to roll it into a 10 line variable (as the original code) to pass back to synapse as expected. I know that my seds/sort could probably be cleaned up too, but it's what I've managed so far. The removal/cleanup at the end is left out intentionally for troubleshooting, but I'll need to add it back in for UKM/Synapse. The path changed, and just changing that didn't let it format/sort the data correctly.

Anyone have any ideas?

#!/system/bin/sh

UKM=/data/UKM;
BB=$UKM/busybox;

case "$1" in
LiveWakelocksKernel)
WL="";
CNT=0;
TEMP=/sdcard/wakelocks_temp.txt;
PATH=/sdcard/wakelocks.txt;
$BB sed -r 's:\t+:\t:g' /sys/kernel/debug/wakeup_sources > $TEMP;
$BB sed -i 's/\t/,/g' $TEMP;
$BB sort -n -r -t, -k7 $TEMP > $PATH;

while read -r line; do
if [ $CNT -lt 10 ]; then
$BB echo $line | $BB awk 'BEGIN { FS="," } /1/ { print $1" - "$7}';
fi;
CNT=$((CNT+1));
done < $PATH;
esac;

*edit*

Disregard, I figured it out. I think.