Combine miso and sugar in a medium heavy-bottomed saucepan. Add sake and mirin, whisking to combine. Bring to a simmer over low heat and cook, stirring frequently, until sugar is dissolved and color begins to darken, 30 to 45 minutes. Remove from heat.