parrotcode: Calculate M ops/s | |
Contents | Examples |
examples/mops/mops.c - Calculate M ops/s
% make examples/mops/mops
% time examples/mops/mops
A Perl 6 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:
examples/benchmarks/mops.pasm, examples/mops/mops.c, examples/mops/mops.cs, examples/mops/mops.il, examples/mops/mops.pl, examples/mops/mops.ps, examples/mops/mops.py, examples/mops/mops.rb, examples/mops/mops.scheme.
|