Skip to content

echo.something use ruby #25

Closed
Closed
@gescheit

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions