Re: Benchmarking Fun

new topic     » goto parent     » topic index » view thread      » older message » newer message

Okay, on my system, Python is faster than my version of nbody, but Matt's version of nbody takes half the time that mine does (and is faster than Python). I can't explain that.

Running Linux Mint 13 on a Lenovo R61i Intel 1.83GHz Core 2 Duo 2GB RAM

Linux 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Euphoria Interpreter v4.0.5 Linux, Using System Memory Revision Date: 2012-10-15, Id: 62d94559f849

Vs.

Python 2.7.3

$ for i in 1 2 3; do time <nbody command> 50000; done

Command real user sys
python nbody.py 50000 0m1.469s 0m1.444s 0m0.020s
  0m1.482s 0m1.476s 0m0.008s
  0m1.547s 0m1.520s 0m0.020s
eui nbody.ex 50000 0m1.836s 0m1.776s 0m0.056s
  0m1.815s 0m1.728s 0m0.080s
  0m1.810s 0m1.728s 0m0.076s
eui nbody-2.ex 50000 0m0.878s 0m0.852s 0m0.024s
  0m0.877s 0m0.860s 0m0.012s
  0m0.876s 0m0.864s 0m0.004s

Matt's is by far the fastest.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu