Skip to content

Instantly share code, notes, and snippets.

@stevenproctor
Created July 17, 2015 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenproctor/67384fb97d47e4ecb0ff to your computer and use it in GitHub Desktop.
Save stevenproctor/67384fb97d47e4ecb0ff to your computer and use it in GitHub Desktop.
Concurrency updates

Rack and WEBrick on Ruby 2.1.5

Running from stevenproctor/language-comparison-client-elixir, with changes in pull request 4 on barrettclark/language-comparison-client-elixir against a local copy of barrettclark/language-comparison-server which is using basic Rack and Webrick on Ruby 2.1.5.

Timings results

running a sinle request took 2756 microseconds
running 100 baseline tasks took 1047 microseconds
running 100 tasks took 215851 microseconds
running 100 in a map took 266523 microseconds

Cowboy on Erlang 17 [erts-6.2.1]

Running from stevenproctor/language-comparison-client-elixir, with changes in pull request 4 on barrettclark/language-comparison-client-elixir against stevenproctor/language-comparison-server-erlang which is using Cowboy running on Erlang 17 [erts-6.2.1].

Timings results

100 requests

running a sinle request took 1488 microseconds
running 100 baseline tasks took 14058 microseconds
running 100 tasks took 24252 microseconds
running 100 in a map took 44854 microseconds

500 requests

running a sinle request took 562 microseconds
running 500 baseline tasks took 4471 microseconds
running 500 tasks took 76739 microseconds
running 500 in a map took 259145 microseconds

1000 requests

Right Now: 2015-07-17T03:39:22Z
running a sinle request took 594 microseconds
running 1000 baseline tasks took 7671 microseconds
running 1000 tasks took 171808 microseconds
running 1000 in a map took 460438 microseconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment