A bear-box is better and most campgrounds in bear country have them. I was at one campground in the Yukon that had bear fencing around it and was electrified at night. You were kindly asked not to pee on it....
Definitely on the bear box. Very common to have bear boxes back east here, in National and State parks with bear populations. Shenandoah NP is a good example here in VA.
I like the idea of the campsite with electric fence. Having spent a night with an aggressive bear marauding and trying to raid our remote campsite in Baxter State Park, I would definitely sleep better with an electric perimeter fence.