Skip to content

Instantly share code, notes, and snippets.

@pedrofaria
Created February 17, 2013 05:42
Show Gist options
  • Save pedrofaria/4970348 to your computer and use it in GitHub Desktop.
Save pedrofaria/4970348 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.31208
Time elapsed multi-thread version clever: 1.55628
Relative time difference: 32.6888 %
Result: 200000010000000
[OK]
threads/threads_001.py: [python version]
Time elapsed single-thread python: 3.37006902695
Time elapsed multi-thread python: 2.20437288284
Relative time difference: 34.5896815401 %
Result: 200000010000000
[OK]
threads/threads_001.lua: [lua version]
Result : 200000010000000
Time elapsed single-thread lua: 0.60
[OK]
threads/threads_001.php: [php version]
Time elapsed single-thread version php: 3.003801
Result: 200000010000000
[OK]
threads/threads_001.rb: [ruby version]
Time elapsed single-thread version ruby: 0.794968
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