This file contains hidden or 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
| <- ImageLoaderMachO::usesTwoLevelNameSpace() const() | |
| -> strcmp() | |
| <- strcmp() | |
| -> strcmp() | |
| <- strcmp() | |
| -> strcmp() | |
| <- strcmp() | |
| -> strcmp() | |
| <- strcmp() | |
| -> strcmp() |
This file contains hidden or 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
| -> malloc_zone_malloc() | |
| <- malloc_zone_malloc() | |
| -> malloc() | |
| <- malloc() | |
| -> strcpy() | |
| <- strcpy() | |
| -> strlen() | |
| <- strlen() | |
| -> tiny_malloc_from_free_list() | |
| <- tiny_malloc_from_free_list() |
This file contains hidden or 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
| #!/usr/sbin/dtrace -Zs | |
| /* | |
| JVM startup memory allocation with the PID provider | |
| (c) 2009 Lourens Naudé (methodmissing) */ | |
| #pragma D option quiet | |
| pid$target::mmap:entry | |
| { |
This file contains hidden or 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
| methodmissing:dtrace lourens$ sudo dtrace -Zs mmap.d -c 'jruby test.rb' | |
| C | |
| mmap(0, 16777216, 3, 4098, 33554432, 0) | |
| mmap(0, 81920, 3, 4098, 50331648, 0) |
This file contains hidden or 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
| static long | |
| io_fread(ptr, len, fptr) | |
| char *ptr; | |
| long len; | |
| OpenFile *fptr; | |
| { | |
| long n = len; | |
| int c; | |
| int saved_errno; |
This file contains hidden or 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
| static int | |
| rb_const_defined_0(klass, id, exclude, recurse) | |
| VALUE klass; | |
| ID id; | |
| int exclude, recurse; | |
| { | |
| VALUE value, tmp; | |
| int mod_retry = 0; | |
| tmp = klass; |
This file contains hidden or 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
| int | |
| rb_str_hash(str) | |
| VALUE str; | |
| { | |
| register long len = RSTRING(str)->len; | |
| register char *p = RSTRING(str)->ptr; | |
| register int key = 0; | |
| #if defined(HASH_ELFHASH) | |
| register unsigned int g; |
This file contains hidden or 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
| static int | |
| rb_any_cmp(a, b) | |
| VALUE a, b; | |
| { | |
| VALUE args[2]; | |
| if (a == b) return 0; | |
| if (FIXNUM_P(a) && FIXNUM_P(b)) { | |
| return a != b; | |
| } |
This file contains hidden or 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
| ELAPSED TIME DISTRIBUTION, dtrace | |
| numcmp | |
| value ------------- Distribution ------------- count | |
| 2048 | 0 | |
| 4096 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 19 | |
| 8192 | 0 | |
| st_init_strtable | |
| value ------------- Distribution ------------- count |
This file contains hidden or 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
| macbook-pros-computer:hwia lourens$ rake bench | |
| (in /Users/lourens/projects/hwia) | |
| ruby bench/bench.rb | |
| warning: Insecure world writable dir /Users/lourens in PATH, mode 040753 | |
| Rehearsal -------------------------------------------------------------------- | |
| StrHash#[:sym] 0.000000 0.000000 0.000000 ( 0.002872) | |
| HashWithIndifferentAccess#[:sym] 0.020000 0.000000 0.020000 ( 0.021855) | |
| ----------------------------------------------------------- total: 0.020000sec | |
| user system total real |