Skip to content

Instantly share code, notes, and snippets.

@petervandenabeele
Created January 18, 2012 18:15
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 petervandenabeele/1634618 to your computer and use it in GitHub Desktop.
Save petervandenabeele/1634618 to your computer and use it in GitHub Desktop.
Binning 1_000_000 numbers over different numbers of bins
max 100 bins
n = 2
SIZE
1000_000
user system total real
Ralph Shneiver: 0.350000 0.000000 0.350000 ( 0.352159)
Sigurd: 0.400000 0.000000 0.400000 ( 0.400920)
Keinich #1 0.290000 0.000000 0.290000 ( 0.291612)
Keinich #2 0.350000 0.000000 0.350000 ( 0.349191)
Magnus Holm: 0.410000 0.000000 0.410000 ( 0.409220)
Abinoam #1: 0.510000 0.010000 0.520000 ( 0.514491)
max 1_000_000 bins
n = 2
SIZE
1000_000
user system total real
Ralph Shneiver: 0.860000 0.000000 0.860000 ( 0.855334)
Sigurd: 1.000000 0.000000 1.000000 ( 1.003093)
Keinich #1 2.670000 0.010000 2.680000 ( 2.685409)
Keinich #2 1.190000 0.000000 1.190000 ( 1.188677)
Magnus Holm: 0.890000 0.000000 0.890000 ( 0.891114)
Abinoam #1: 2.490000 0.000000 2.490000 ( 2.495945)
RUBY 1.8.7:
===========
$ ruby -v
ruby 1.8.7 (2011-12-28 patchlevel 357) [i686-linux]
max 100 bins
n = 2
SIZE
1_000_000
user system total real
Ralph Shneiver: 0.730000 0.010000 0.740000 ( 0.744951)
Sigurd: 4.240000 0.070000 4.310000 ( 4.311039)
Keinich #1 3.560000 0.030000 3.590000 ( 3.592805)
Keinich #2 25.090000 0.110000 25.200000 ( 25.216205)
max 1_000_000 bins
n = 2
SIZE
1_000_000
user system total real
Ralph Shneiver: 1.300000 0.000000 1.300000 ( 1.304502)
Sigurd: 59.020000 0.020000 59.040000 ( 59.082027)
Keinich #1 5.660000 0.020000 5.680000 ( 5.682504)
Keinich #2 ^C never finished (minutes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment