Skip to content

Instantly share code, notes, and snippets.

@pedrofaria
Created February 17, 2013 05:17
Show Gist options
  • Save pedrofaria/4970297 to your computer and use it in GitHub Desktop.
Save pedrofaria/4970297 to your computer and use it in GitHub Desktop.
eu ~/src/clever/benchmark $ sh run.sh
Running threads benchmark...
threads/threads_001.py: [python version]
Time elapsed single-thread python: 3.37238383293
Time elapsed multi-thread python: 2.16011404991
Relative time difference: 35.9469693569 %
Result: 200000010000000
[OK]
threads/threads_001.lua: [lua version]
[OK]
threads/threads_001.php: [php version]
Time elapsed single-thread version php: 3.482491
Result: 200000010000000
[OK]
threads/threads_001.clv:
Time elapsed single-thread version clever: 2.30576
Time elapsed multi-thread version clever: 1.55377
Relative time difference: 32.6135 %
Result: 200000010000000
[OK]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment