Skip to content

Instantly share code, notes, and snippets.

@pedrofaria
Created February 17, 2013 05:20
Show Gist options
  • Save pedrofaria/4970300 to your computer and use it in GitHub Desktop.
Save pedrofaria/4970300 to your computer and use it in GitHub Desktop.
eu ~/src/clever/benchmark $ sh run.sh
Running threads benchmark...
threads/threads_001.clv:
Time elapsed single-thread version clever: 2.30588
Time elapsed multi-thread version clever: 1.54125
Relative time difference: 33.1601 %
Result: 200000010000000
[OK]
threads/threads_001.py: [python version]
Time elapsed single-thread python: 3.55690193176
Time elapsed multi-thread python: 2.13072919846
Relative time difference: 40.0959250681 %
Result: 200000010000000
[OK]
threads/threads_001.lua: [lua version]
Result : 200000010000000
Time elapsed single-thread lua: 0.59
[OK]
threads/threads_001.php: [php version]
Time elapsed single-thread version php: 3.512333
Result: 200000010000000
[OK]
threads/threads_001.c: [C version]
Time elapsed single-thread C: 0.00
Result : 200000010000000
[OK]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment