Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save prathmeshranaut/1d0afcf0368578064ecac41745682a04 to your computer and use it in GitHub Desktop.
Save prathmeshranaut/1d0afcf0368578064ecac41745682a04 to your computer and use it in GitHub Desktop.
➜ celluloid git:(multiplex) ✗ ruby benchmarks/pool.rb
I, [2016-08-10T20:03:53.171191 #13540] INFO -- : Celluloid 0.17.5 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
Celluloid::Group::Pool
Rehearsal -----------------------------------------------
pool - 10 2.190000 0.110000 2.300000 ( 2.277025)
pool - 100 1.290000 0.060000 1.350000 ( 1.335328)
pool - 1000 2.090000 0.050000 2.140000 ( 2.130047)
-------------------------------------- total: 5.790000sec
user system total real
pool - 10 1.680000 0.060000 1.740000 ( 1.743700)
pool - 100 1.380000 0.040000 1.420000 ( 1.422161)
pool - 1000 1.180000 0.030000 1.210000 ( 1.212247)
➜ celluloid git:(multiplex) ✗ ruby benchmarks/pool.rb
I, [2016-08-10T20:04:09.555635 #13554] INFO -- : Celluloid 0.17.5 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
Celluloid::Group::Pool
Rehearsal -----------------------------------------------
pool - 10 1.640000 0.110000 1.750000 ( 1.738604)
pool - 100 1.170000 0.060000 1.230000 ( 1.231293)
pool - 1000 2.060000 0.080000 2.140000 ( 2.121228)
-------------------------------------- total: 5.120000sec
user system total real
pool - 10 0.980000 0.040000 1.020000 ( 1.022797)
pool - 100 1.320000 0.040000 1.360000 ( 1.354488)
pool - 1000 1.270000 0.030000 1.300000 ( 1.294981)
➜ celluloid git:(multiplex) ✗ unset CELLULOID_GROUP_CLASS
➜ celluloid git:(multiplex) ✗ ruby benchmarks/pool.rb
I, [2016-08-10T20:05:39.618094 #13589] INFO -- : Celluloid 0.17.5 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
Celluloid::Group::Spawner
Rehearsal -----------------------------------------------
pool - 10 1.600000 0.100000 1.700000 ( 1.676635)
pool - 100 2.370000 0.070000 2.440000 ( 2.425506)
pool - 1000 1.230000 0.050000 1.280000 ( 1.278755)
-------------------------------------- total: 5.420000sec
user system total real
pool - 10 1.480000 0.050000 1.530000 ( 1.516431)
pool - 100 1.350000 0.040000 1.390000 ( 1.380890)
pool - 1000 1.740000 0.050000 1.790000 ( 1.786953)
➜ celluloid git:(multiplex) ✗ ruby benchmarks/pool.rb
I, [2016-08-10T20:06:25.103888 #13614] INFO -- : Celluloid 0.17.5 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
Celluloid::Group::Spawner
Rehearsal -----------------------------------------------
pool - 10 1.580000 0.090000 1.670000 ( 1.659551)
pool - 100 1.610000 0.050000 1.660000 ( 1.644415)
pool - 1000 1.500000 0.040000 1.540000 ( 1.535674)
-------------------------------------- total: 4.870000sec
user system total real
pool - 10 1.210000 0.030000 1.240000 ( 1.236111)
pool - 100 0.910000 0.030000 0.940000 ( 0.939042)
pool - 1000 1.220000 0.030000 1.250000 ( 1.249208)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment