Open Bug 1313373 Opened 8 years ago Updated 2 years ago

Improve JSON::stringify peformance for kraken-stringify-tinderbox

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

People

(Reporter: h4writer, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

We are quite slow on https://arewefastyet.com/#machine=29&view=single&suite=kraken&subtest=stringify-tinderbox . Looking into it this is mostly JSON::stringify performance.

It might be good to look into the benchmark and see where we spend our time. And try to decrease the time spend in that function.

The benchmark is located:
https://github.com/h4writer/arewefastyet/tree/master/benchmarks/kraken/tests/kraken-1.1

The stringify function is located:
http://searchfox.org/mozilla-central/source/js/src/json.cpp#596

After compiling a shell you can run the specific test like:
$ $JS/dist/bin/js -f json-stringify-tinderbox-data.js -e "var start = new Date();" -f json-stringify-tinderbox.js -e "print(new Date() - start)"
Mentor: hv1989
Blocks: sm-js-perf
Priority: -- → P3
Flags: needinfo?(jdemooij)
Depends on: 1342402
Depends on: 1343005
We landed some patches for this last week. We're still a bit slower, I can probably get back to this in a few weeks/months.
Flags: needinfo?(jdemooij)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.