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