fix Utils#group_by_key
add profiling script