tabbi's blog

By tabbi, history, 6 weeks ago, In English

Hypothetically if one was operating an online judge of the same size and responsiveness as Codeforces and hosting it on AWS how much would it cost per month?

  • Vote: I like it
  • +53
  • Vote: I do not like it

6 weeks ago, # |
  Vote: I like it +79 Vote: I do not like it

Quick back of the envelope calculations: submission ids are consecutive so you can pick two dates and subtract to calculate the average number of submissions per day. It seems like it's around ~100k per day (with spikes during contest time).

Lets say each submission requires 10 seconds to compile and run all the test cases (assuming bad submissions exit early and typical AC submissions won't need close to the TL on hundreds of test cases). Then you're looking at 1 million cpu seconds or 277.78 cpu hours per day.

If you can get the autoscaling instances for $0.05 per hour, it will cost roughly $15 per day.