examples/mops/mops.c - Calculate M ops/s
% perl examples/mops/mops.pl
A Perl implementation of the examples/mops/mops.pasm example program, for speed comparisons.
Calculates a value for M ops/s (million operations per second) using integer arithmetic.
Prints out:
the number of look iterations,
the estimated number of ops performed,
the elapsed time, and
the number of M op/s.
examples/assembly/mops.pasm, examples/mops/mops.c, examples/mops/mops.cs, examples/mops/mops.il, examples/mops/mops.p6, examples/mops/mops.ps, examples/mops/mops.py, examples/mops/mops.rb, examples/mops/mops.scheme.
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.