Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 923 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 923 Bytes

Silly Comparison of a silly concept in different languages

  • A plot (Multiply: calc/print of 500000!) #

Note that these aren't necessarily representative of the languages used, but rather what I could write in them without spending too long thinking about it.

Running it

To run all defined benchmarks, just run python run.py, which will dump the plot into plots/, and the results into data.dat and memories.

To skip some specific benchmarks, define the env vars BENCH_OVERRIDE=SKIP and BENCH_<language>=TRUE (or BENCH_<mode>=TRUE to skip a specific mode)

And to run only some specific benchmarks, set BENCH_OVERRIDE=RUN instead of SKIP.

To run N benchmarks in parallel, set BENCH_JOB=N, or to anything that's not a number to make it use all CPUs (as defined by os.cpu_count()).

Think my code is junk, or unfairly slow?

Fix it yourself (and throw me a PR)