Skip to content

Sonicjson runs slower on ARM than x86. #786

@achamilan

Description

@achamilan

Test the performance of sonicjson on x86 and ARM. The performance of sonicjson on ARM is much weaker than that on x86 and even worse than that of std json in some scenarios. What is the support for Arm? Does some feature optimization support only x86 but not ARM?

Run the test cases in the encoder directory.
go test -bench BenchmarkEncoder_Binding

<style> </style>
  X86(ns/op) ARM(ns/op)
BenchmarkEncoder_Binding_Sonic-8 29389 85548
BenchmarkEncoder_Binding_Sonic_Fast-8 18757 65064
BenchmarkEncoder_Binding_StdLib-8 45134 58744

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