Skip to content

NG is slower compared to Bellard version #876

Open
@ABBAPOH

Description

@ABBAPOH

So, I ran Valgrind with 2 engines and it seems that NG is about 3% slower and also consumes more memory

========== Performance data for Resolving ==========
    Old instruction count: 9396116795
    New instruction count: 9761057471
    Relative change: +3 %
    Old peak memory usage: 118112672 Bytes
    New peak memory usage: 120718720 Bytes
    Relative change: +2 %

Results seem to be consistent between different runs.

However, attempt to use sampling profiler on MacOS does not provide consistent results making hard to track down the reason of degradation.
Some suspects are (the numbers are sample counts in 3 different runs):
Old
js_create_function 32/28/42
__JS_EvalInternal 87/73/81

New
js_create_function 39/36/39
__JS_EvalInternal 105/84/83
It seems that both functions are a bit slower, but that could be natural variance between runs.
Bisecting this would be harder this time, but if there's no other way, I can try doing so.

In the meantime, maybe you have any hints what could cause regression?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions