Impl some options for examples/perf.rb

Add -s, -n and -c options.
Fix output format of benchmark script