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

New benchmark: string-switch #955

Closed

Conversation

tmikov
Copy link
Contributor

@tmikov tmikov commented Apr 3, 2023

Summary:
Benchmark to compare fundamental performance of mapping from a string
key, using an Object, a Map or a switch with a string argument.
Proposed by sebmarkbage.

Initial performance results on MPB PRO x86-64 are interesting, showing
that we have more fundamental work to do:

shermes hermes v8 v8 --jitless jsc jsc --useJIT=0
Switch 4997 5450 267 2912 250 1095
Object 658 793 274 825 224 1150
Map 874 965 185 783 276 1131

Differential Revision: D44617123

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Apr 3, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44617123

Summary:
Pull Request resolved: facebook#955

Benchmark to compare fundamental performance of mapping from a string
key, using an Object, a Map or a `switch` with a string argument.
Proposed by sebmarkbage.

Initial performance results on MPB PRO x86-64 are interesting, showing
that we have more fundamental work to do:

|        | shermes | hermes |  v8 | v8 --jitless | jsc | jsc --useJIT=0 |
|--------|--------:|-------:|----:|-------------:|----:|---------------:|
| Switch |    4997 |   5450 | 267 |         2912 | 250 |           1095 |
| Object |     658 |    793 | 274 |          825 | 224 |           1150 |
| Map    |     874 |    965 | 185 |          783 | 276 |           1131 |

Reviewed By: avp

Differential Revision: D44617123

fbshipit-source-id: 08067c753d25fd5e15ae2e9e15aa425a1d01b128
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44617123

@tmikov tmikov force-pushed the export-D44617123-to-static_h branch from 2ffb364 to 44402ee Compare April 3, 2023 20:03
facebook-github-bot pushed a commit that referenced this pull request Apr 3, 2023
Summary:
Pull Request resolved: #955

Benchmark to compare fundamental performance of mapping from a string
key, using an Object, a Map or a `switch` with a string argument.
Proposed by sebmarkbage.

Initial performance results on MPB PRO x86-64 are interesting, showing
that we have more fundamental work to do:

|        | shermes | hermes |  v8 | v8 --jitless | jsc | jsc --useJIT=0 |
|--------|--------:|-------:|----:|-------------:|----:|---------------:|
| Switch |    4997 |   5450 | 267 |         2912 | 250 |           1095 |
| Object |     658 |    793 | 274 |          825 | 224 |           1150 |
| Map    |     874 |    965 | 185 |          783 | 276 |           1131 |

Reviewed By: avp

Differential Revision: D44617123

fbshipit-source-id: bfcd506e388703e9e88be45474c2c4b837cf5e95
@tmikov tmikov closed this Apr 4, 2023
@tmikov tmikov deleted the export-D44617123-to-static_h branch April 17, 2023 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants