Skip to content

Create a browser based benchmark and host it on jsPerf #642

Open
@robin-anil

Description

@robin-anil

Feature request

I would love to have some standardized protobuf.js benchmarks, a hosted version of the benchmarks on jsPerf.com we understand the performance profile on other browsers and low-powered devices.

For the following operations

  • .create()
  • .from()
  • .toObject()
  • decoding from bytes
  • encoding to bytes

Across Variations

Messages with ints, strings, enums only fields. Mixed fields, arrays, mixed arrays, messages, mixed messages, extensions, and nested protos.

Across Sizes

  • small bytes (O(100-500) bytes)
  • medium bytes (O(4-5) KB)
  • large sized bytes (O(40-50) KB)
  • jumbo-sized bytes (400-500 KB)

Stretch goals

  • Measure memory used.
  • Track historical performance (to avoid regression)
  • Track values for standard configuration.

Happy to help collaborate, need to figure out a versioning and hosting story.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions