Created
February 24, 2010 00:00
-
-
Save mhat/312883 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Darwin Endless-Waltz.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 | |
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0], MBARI 0x6770, Ruby Enterprise Edition 2009.10 | |
------------------------------------------------------------------------------ | |
-- | |
map with block vs &: -- iterations by powers of 10 | |
############################################################################## | |
user system total real | |
## 10^0 | |
simply-S 0.000000 0.000000 0.000000 ( 0.000022) | |
times gc'ed: 0 | |
allocated..: 117 | |
cutesy-S 0.000000 0.000000 0.000000 ( 0.000016) | |
times gc'ed: 0 | |
allocated..: 119 | |
Δ garbage (simple-cutesy): 0 | |
Δ alloced (simple-cutesy): -2 | |
----- | |
## 10^1 | |
simply-S 0.000000 0.000000 0.000000 ( 0.000074) | |
times gc'ed: 0 | |
allocated..: 432 | |
cutesy-S 0.000000 0.000000 0.000000 ( 0.000114) | |
times gc'ed: 0 | |
allocated..: 452 | |
Δ garbage (simple-cutesy): 0 | |
Δ alloced (simple-cutesy): -20 | |
----- | |
## 10^2 | |
simply-S 0.000000 0.000000 0.000000 ( 0.000988) | |
times gc'ed: 0 | |
allocated..: 3582 | |
cutesy-S 0.000000 0.000000 0.000000 ( 0.002403) | |
times gc'ed: 1 | |
allocated..: 3782 | |
Δ garbage (simple-cutesy): -1 | |
Δ alloced (simple-cutesy): -200 | |
----- | |
## 10^3 | |
simply-S 0.010000 0.000000 0.010000 ( 0.008547) | |
times gc'ed: 3 | |
allocated..: 35082 | |
cutesy-S 0.010000 0.000000 0.010000 ( 0.012985) | |
times gc'ed: 5 | |
allocated..: 37082 | |
Δ garbage (simple-cutesy): -2 | |
Δ alloced (simple-cutesy): -2000 | |
----- | |
## 10^4 | |
simply-S 0.080000 0.000000 0.080000 ( 0.079695) | |
times gc'ed: 29 | |
allocated..: 350082 | |
cutesy-S 0.130000 0.000000 0.130000 ( 0.133268) | |
times gc'ed: 57 | |
allocated..: 370082 | |
Δ garbage (simple-cutesy): -28 | |
Δ alloced (simple-cutesy): -20000 | |
----- | |
## 10^5 | |
simply-S 0.760000 0.000000 0.760000 ( 0.763990) | |
times gc'ed: 286 | |
allocated..: 3500082 | |
cutesy-S 1.300000 0.000000 1.300000 ( 1.307100) | |
times gc'ed: 573 | |
allocated..: 3700082 | |
Δ garbage (simple-cutesy): -287 | |
Δ alloced (simple-cutesy): -200000 | |
----- | |
map with block vs &: -- data size by powers of 10 | |
****************************************************************************** | |
user system total real | |
## 10^0 Array 1 | |
simply 0.000000 0.000000 0.000000 ( 0.000006) | |
times gc'ed: 0 | |
allocated..: 86 | |
cutesy 0.000000 0.000000 0.000000 ( 0.000010) | |
times gc'ed: 0 | |
allocated..: 88 | |
Δ garbage (simple-cutesy): 0 | |
Δ alloced (simple-cutesy): -2 | |
----- | |
## 10^1 Array 10 | |
simply 0.000000 0.000000 0.000000 ( 0.000010) | |
times gc'ed: 0 | |
allocated..: 113 | |
cutesy 0.000000 0.000000 0.000000 ( 0.000013) | |
times gc'ed: 0 | |
allocated..: 115 | |
Δ garbage (simple-cutesy): 0 | |
Δ alloced (simple-cutesy): -2 | |
----- | |
## 10^2 Array 100 | |
simply 0.000000 0.000000 0.000000 ( 0.000055) | |
times gc'ed: 0 | |
allocated..: 383 | |
cutesy 0.000000 0.000000 0.000000 ( 0.000060) | |
times gc'ed: 0 | |
allocated..: 385 | |
Δ garbage (simple-cutesy): 0 | |
Δ alloced (simple-cutesy): -2 | |
----- | |
## 10^3 Array 1000 | |
simply 0.010000 0.000000 0.010000 ( 0.000490) | |
times gc'ed: 0 | |
allocated..: 3083 | |
cutesy 0.000000 0.000000 0.000000 ( 0.000519) | |
times gc'ed: 0 | |
allocated..: 3085 | |
Δ garbage (simple-cutesy): 0 | |
Δ alloced (simple-cutesy): -2 | |
----- | |
## 10^4 Array 10000 | |
simply 0.010000 0.000000 0.010000 ( 0.017958) | |
times gc'ed: 2 | |
allocated..: 30083 | |
cutesy 0.020000 0.000000 0.020000 ( 0.012865) | |
times gc'ed: 1 | |
allocated..: 30085 | |
Δ garbage (simple-cutesy): 1 | |
Δ alloced (simple-cutesy): -2 | |
----- | |
## 10^5 Array 100000 | |
simply 0.070000 0.010000 0.080000 ( 0.080484) | |
times gc'ed: 3 | |
allocated..: 300083 | |
cutesy 0.090000 0.000000 0.090000 ( 0.092544) | |
times gc'ed: 2 | |
allocated..: 300085 | |
Δ garbage (simple-cutesy): 1 | |
Δ alloced (simple-cutesy): -2 | |
----- | |
## 10^6 Array 1000000 | |
simply 0.660000 0.070000 0.730000 ( 0.724970) | |
times gc'ed: 5 | |
allocated..: 3000083 | |
cutesy 1.000000 0.070000 1.070000 ( 1.077256) | |
times gc'ed: 3 | |
allocated..: 3000085 | |
Δ garbage (simple-cutesy): 2 | |
Δ alloced (simple-cutesy): -2 | |
----- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment