There are two competing effects at work here; hyperconjugation, and resonance involving the double bond.
According to this website, a secondary alkyl cation and a primary allyl cation have roughly the same stability.
Carbocation Stability: $\ce{CH3+ < CH3CH2+ < (CH3)2CH+ ≈ CH2=CH-CH2+ < C6H5CH2+ ≈ (CH3)3C+}$
This is not really something you can predict from qualitative considerations - it is difficult to assess the strength of resonance versus hyperconjugation - but it requires experimental evidence, or detailed computer calculations to give a definitive answer.
In addition, the effect of adding more hyperconjugated groups is not linear. The difference in stability between tertiary and secondary alkyl cations is bigger than that between primary and secondary cations - tertiary alkyl cations are actually pretty stable.
Lastly, (thanks to @permeakra for pointing this out) the stability of carbocations in influenced by the environment which they are in. In particular, different solvents affect the stability of different cations to a varying degree and so the above order of stability should be taken as a rough guideline, not a hard and fast rule.