Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark for React Native (Hermes) target #47

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Conversation

cometkim
Copy link
Owner

Resolves #46

This utilizes perf benchmark bundling to React Native (hermes) target using its default configuration.

Size of the bytecode outputs:

  • graphemer: 140 KB
  • unicode-segmenter/grapheme 48 KB

Then execute the Hermes bytecode to measure perf of graphemer vs unicode-segmenter/grapheme.

The result on my MacBook Pro M1 laptop:

graphemer (small input)
samples: 1000
duration (avg): 0.326

graphemer (medium input)
samples: 1000
duration (avg): 1.611

unicode-segmenter/grapheme (small input)
samples: 1000
duration (avg): 0.14

unicode-segmenter/grapheme (medium input)
samples: 1000
medium input (avg): 0.674

Copy link

changeset-bot bot commented Jun 29, 2024

⚠️ No Changeset found

Latest commit: db79d82

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cometkim cometkim changed the title Measure performance of React Native (Hermes) target Measurement on the React Native (Hermes) target Jun 29, 2024
Copy link

codecov bot commented Jun 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (6d02503) to head (db79d82).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #47   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         2765      2765           
=========================================
  Hits          2765      2765           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cometkim cometkim changed the title Measurement on the React Native (Hermes) target Benchmark for React Native (Hermes) target Jun 29, 2024
@cometkim cometkim merged commit a943e9f into main Jun 29, 2024
5 checks passed
@cometkim cometkim deleted the perf-on-hermes branch June 29, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benchmark perf on Hermes engine
1 participant