add perf stuff and changed output to stdout.
Merge branch 'master' of github.com:9nut/misc