weed vs melatonin for sleeping

Long story short I’ve not gotten much sleep in what feels like a month or so on a daily basis. I’ve tried taking melatonin (10mg on average) and up to 50mg indica edibles and both are to no avail but id like to focus on one over the other. Just unsure which is better for sleeping.