Skip to content

Instantly share code, notes, and snippets.

@pedrofaria
Created February 17, 2013 06:06
Show Gist options
  • Save pedrofaria/4970394 to your computer and use it in GitHub Desktop.
Save pedrofaria/4970394 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.29763
Time elapsed multi-thread version clever: 1.53859
Relative time difference: 33.0359 %
Result: 200000010000000
[OK]
threads/threads_001.py: [python version]
Time elapsed single-thread python: 3.3809800148
Time elapsed multi-thread python: 2.12463998795
Relative time difference: 37.1590491915 %
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.530962
Result: 200000010000000
[OK]
threads/threads_001.rb: [ruby version]
Time elapsed single-thread version ruby: 0.790679
Time elapsed multi-thread version ruby: 0.3982475
Relative time difference: 49.63221484319175
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