haskell/criterion

" in json output is html escaped

reactormonk opened this issue · 4 comments

When running criterion with --template json --output mydata.json, the json output contains html escapes.

[{"reportAnalysis":{"anMean":{"estError":{"confIntLDX"

Stack lts 13.26

Good catch. For some bizarre reason, json.tpl is using {{json}}, which causes the contents of json to be HTML-escaped. I think we actually want {{{json}}}, which avoids the escaping.

Patch incoming.

With #220, the output of --template json is:

[{"reportAnalysis":{"anMean":{"estError":{"confIntLDX":...

Is this to your liking, @reactormonk?

👍

I've uploaded criterion-1.5.6.2 to Hackage with these changes.