Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created August 19, 2009 23:17
Show Gist options
  • Select an option

  • Save methodmissing/170697 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/170697 to your computer and use it in GitHub Desktop.
ELAPSED TIME DISTRIBUTION, dtrace
numcmp
value ------------- Distribution ------------- count
2048 | 0
4096 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 19
8192 | 0
st_init_strtable
value ------------- Distribution ------------- count
131072 | 0
262144 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
524288 | 0
st_copy
value ------------- Distribution ------------- count
4096 | 0
8192 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 853
16384 |@ 15
32768 | 0
65536 | 0
131072 | 6
262144 | 1
524288 | 0
1048576 | 1
2097152 | 0
st_delete
value ------------- Distribution ------------- count
8192 | 0
16384 |@@@@@@@@@@@@@@@@ 361
32768 |@@@@@@@@@@@@@@@@@@@@ 437
65536 |@@@ 67
131072 |@ 21
262144 | 4
524288 | 0
1048576 | 0
2097152 | 0
4194304 | 2
8388608 | 0
new_size
value ------------- Distribution ------------- count
2048 | 0
4096 |@@@@@@@@@ 2480
8192 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 8166
16384 | 31
32768 | 6
65536 | 7
131072 | 0
262144 | 3
524288 | 1
1048576 | 0
st_init_table_with_size
value ------------- Distribution ------------- count
16384 | 0
32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 10507
65536 | 125
131072 | 18
262144 | 4
524288 | 5
1048576 | 1
2097152 | 1
4194304 | 5
8388608 | 1
16777216 | 0
st_foreach
value ------------- Distribution ------------- count
4096 | 0
8192 | 1
16384 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 15149
32768 |@@@@@@@ 3633
65536 |@@@@ 2129
131072 | 31
262144 | 6
524288 | 3
1048576 | 0
2097152 | 3
4194304 | 2
8388608 | 1
16777216 | 1
33554432 | 0
67108864 | 1
134217728 | 0
st_init_table
value ------------- Distribution ------------- count
32768 | 0
65536 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 9924
131072 |@@@ 700
262144 | 22
524288 | 10
1048576 | 1
2097152 | 3
4194304 | 5
8388608 | 2
16777216 | 0
strhash
value ------------- Distribution ------------- count
4096 | 0
8192 | 1
16384 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 55691
32768 |@ 2177
65536 | 113
131072 | 46
262144 | 13
524288 | 16
1048576 | 1
2097152 | 5
4194304 | 0
8388608 | 0
16777216 | 1
33554432 | 0
st_insert
value ------------- Distribution ------------- count
4096 | 0
8192 | 20
16384 |@ 1000
32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 38749
65536 | 395
131072 | 138
262144 | 45
524288 | 15
1048576 | 4
2097152 | 3
4194304 | 5
8388608 | 0
st_init_numtable
value ------------- Distribution ------------- count
65536 | 0
131072 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 10518
262144 | 53
524288 | 15
1048576 | 2
2097152 | 5
4194304 | 5
8388608 | 2
16777216 | 0
numhash
value ------------- Distribution ------------- count
2048 | 0
4096 |@@@@@@@@@@@@@@ 110975
8192 |@@@@@@@@@@@@@@@@@@@@@@@@@@ 202805
16384 | 1157
32768 | 332
65536 | 180
131072 | 87
262144 | 31
524288 | 43
1048576 | 7
2097152 | 2
4194304 | 5
8388608 | 0
st_lookup
value ------------- Distribution ------------- count
4096 | 0
8192 | 674
16384 | 2629
32768 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 272836
65536 |@@@@@@@ 54927
131072 | 892
262144 | 227
524288 | 160
1048576 | 51
2097152 | 40
4194304 | 75
8388608 | 7
16777216 | 1
33554432 | 0
FUNC COUNT AVG(us) SUM(us)
numcmp 19 6 116
st_init_strtable 1 312 312
st_copy 876 16 14418
st_delete 892 61 54653
new_size 10694 9 100479
st_init_table_with_size 10667 57 608397
st_foreach 20960 36 773093
st_init_table 10667 127 1362026
strhash 58064 32 1859697
st_init_numtable 10600 179 1899635
st_insert 40374 52 2104802
numhash 315624 8 2829579
st_lookup 332519 56 18943014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment