The average teacher salary according to the Ministry of Education is $99,000 (total comp). They are contracted for 196 work days; 6.5 hours per day, equalling a rate of $78 per hour.
Developer salaries are harder to come by, not being officially published in a cohesive form, but levels.fyi suggests a median income of $147,000 (total comp). In my opinion, levels.fyi skews towards big tech, ignoring the little mom and pops that pay peanuts. Other sources suggest the average is closer to $80-90k, depending on who you ask. In the interest of fairness, I'm going to pick the largest number I can find.
Again, not having officially published data, contractual terms are hard to establish, but I think it is reasonable to assume that most developer jobs will expect somewhere around 2000 hours per year – your typical 40 hour work week. In my experience, this is the norm. While I see a growing number of places that allow fewer hours, they come with a commensurate cut in pay. This puts the median developer at $73 per hour.
It is recognized that median and average are not the same, but given the distribution of teacher salaries, median and average should be close to equivalent. For all intents and purposes I think we can consider them to be equivalent in this case. It is not like there is a teacher on the payroll making millions to skew the numbers or something. The pay bands are known.
So, we're in the same ballpark. Within a few dollars of each other. But, as before, I won't be surprised if there is variance across locations. Pay scales can differ significantly from one place to another.