Skip to content

Instantly share code, notes, and snippets.

View shubhamkumar13's full-sized avatar
๐Ÿ˜‘
is existing

shubham shubhamkumar13

๐Ÿ˜‘
is existing
View GitHub Profile
@shubhamkumar13
shubhamkumar13 / cached.md
Created November 23, 2020 13:18
loop variables cached
[1, 0]
[2789, 1]
[5578, 1]
[8367, 1]
[11156, 1]
[13944, 1]
[16733, 1]
[19522, 1]
[22311, 1]
@shubhamkumar13
shubhamkumar13 / uncached.md
Created November 23, 2020 13:17
loop values (uncached)
[1, 0]
[2093, 1]
[6276, 1]
[9065, 1]
[11854, 1]
[14643, 1]
[17431, 1]
[20220, 1]
[23009, 1]
1,2295c1
< <did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor gc$<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor gc$<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor gc$<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor gc$<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor 
<did minor gc>2789.1					      <
<did minor gc>5578.1					      <
<did minor gc>8367.1					      <
<did minor gc>11156.1					      <
<did minor gc>13944.1					      <
<did minor gc>16733.1					      <
<did minor gc>19522.1					      <
<did minor gc>22311.1					      <
<did minor gc>25099.1					      <
@shubhamkumar13
shubhamkumar13 / 2bb2bde_diff.md
Last active November 21, 2020 16:09
[<outer_loop>, <inner_loop>]
[2092, 1]
[1395, 0]
[2788, 0]
[2789, 0]
[2789, 0]
[2789, 0]
[2788, 0]
[2789, 0]
[2789, 0]
@shubhamkumar13
shubhamkumar13 / diff.py
Last active November 23, 2020 07:19
snippet describing a way to get numbers for loop iterations for cached vs uncached
def get_diff(loop_list):
return [[(loop_list[i][0] - loop_list[i - 1][0]),(loop_list[i][1] - loop_list[i - 1][1])] for i in range(1, len(loop_list) - 1)]
@shubhamkumar13
shubhamkumar13 / 2bb2bde_log.md
Last active November 20, 2020 20:51
cached vs uncached logs
<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor gc$<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor gc$<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor gc$<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>$requested minor gc<did minor gc>requested minor gc<did minor gc>requested minor gc$<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor gc>requested minor gc<did minor gc>!requested minor gc<did minor g
@shubhamkumar13
shubhamkumar13 / 2bb_loop_counters.md
Last active November 20, 2020 05:59
2bb and trunk output gdb log
 <innerloop>.<outerloop>  
 51: '3488.1',
 52: '465026.1',
 53: '802231.3',
 54: '958797.7',
 55: '1020543.10',
 56: '1040081.29',
 57: '1045750.16',
 58: '1047692.499',
@shubhamkumar13
shubhamkumar13 / compare_diffs.py
Last active November 18, 2020 09:08
compare the diffs inside the logs generated
>>> f = open("/home/sk/ocaml/diff_linear.log", "r")
>>> f1 = f.readlines()
>>> counter = 0
>>> for x in f1:
... counter += 1
...
>>> print(counter)
163
>>> counter = 0
>>> for x in f1:
@shubhamkumar13
shubhamkumar13 / diff.md
Created November 18, 2020 08:56
2bb2bde-trunk-caml_request_minor_gc diff
33,37d32
< Growing gray_vals to 32k bytes
< Growing gray_vals to 64k bytes
< Growing gray_vals to 128k bytes
< Growing gray_vals to 256k bytes
< Growing gray_vals to 512k bytes
49d43
< Growing gray_vals to 1024k bytes
58d51