By this measure, Canada did better than China, the United States, or the Russian Federation (the top three countries by number of medals)....but Jamaica comes out far and away the best.An even better measure might be medal winners per capita: that is, we shouldn't count multiple medal winners more than once. However, that would be a pain to calculate. It is also not clear how to deal appropriately with team sports, where you get a lot of medalists but only one medal counted.
Medal count came from here. Populations came from here.
Update: It has been pointed out to me that the Bahamas actually has a higher per capita medal count than Jamaica, which I missed because they actually had very few medals. They got 2 medals, but got them from a population of just 331,000, for a medal per million score of 6.04.
A commentator pointed out this nice website that graphs medals per million citizens, among other relations.