[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31138: Native json slower than json.el

From: Dmitry Gutov
Subject: bug#31138: Native json slower than json.el
Date: Tue, 16 Apr 2019 18:30:08 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 16.04.2019 18:13, Eli Zaretskii wrote:

Thanks.  I think we need to run this with a larger JSON, or maybe run
it several times in a loop.

There's a loop in benchmark already (10 times).

Because there were too few samples in
this run, so we might see a biased picture due to overhead of stuff
that is done only once.

I've increased it to 100 (the process now takes 38 seconds here).

perf also has a sampling frequency parameter (still 99 Hz used).

Also, please set gc-cons-threshold and gc-cons-percentage to very
large values, to prevent GC from biasing the profile even more.

gc-cons-percentage says it's ignored when gc-cons-threshold is high enough. I've increased the latter.

If you have certain recording or output format preferences, please let
me know.

The ASCII format is fine.

It can add extra columns or some such.

Was this an optimized build of Emacs or an unoptimized one?

What compiler should emacs be built with?               gcc -g3 -O2

The script and report are attached.

Attachment: perf-report.txt
Description: Text document

Attachment: json-test.el
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]