Closed
Description
This is a very bad idea to use ruby for purpose. Running interpreter as ruby, python, php and other is high cost task.
Example:
time sh -c "for i in seq 1000
; do ruby echo.something 123>/dev/null; done"
8.25s user 2.35s system 85% cpu 12.392 total
time sh -c "for i in seq 1000
; do sh -c ./echo.something.sh 123>/dev/null; done"
0.01s user 0.09s system 6% cpu 1.621 total
echo.something.sh
!/bin/sh
[ -z "$@" ] && exit 1
echo "$@"
Activity