Skip to content

Performance report for kotlin wasm compiler #57

Open
@igoriakovlev

Description

@igoriakovlev

Hi,
We have some stringref experiment results concerning stringref proposal.

We compared two different string implementations using chars array and stringref reference implementations. We rewritten dom-monster the benchmark (which using DOM a lot) from JS into the Kotlin and compiled it into the Wasm with and w/o stringref support. The results were measured with two ways: DevTools framerate stats and perf-monitor (that was applied only to DOM updating part of benchmark code).

We got next results:

  • DevTools frame rate shows us up to 25% performance boost for stringref implementation (whatever it means for timer firing update of DOM nodes).

  • perf-monitor shows about x3.5 performance boost for stringref (that hardly depends on benchmark parameters) over classic string implementations.

The profile we got for classic string implementation shows that at least 10% of all CPU time was spent for Kotlin to JS conversions.

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