JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.3.0/handlebars.js"></script>
<ul id="test">
</ul>

CSS

.passed {
    color:green
}
.failed {
    color: red
}

JavaScript

var text, $item,
    test = ['test'],
    template = "{{#each test}}{{this}}{{/each}}",
    $list = $('#test');
for(var i=0; i<10000; i++) {
    text = Handlebars.compile(template)({  
        test:test
    });
    if(text == test[0]) {
        $list.append('<ul class="passed">'+i+': Passed</ul>');   
    }
    else {
        $list.append('<ul class="failed">'+i+': Failed</ul>');   
    }
    
}