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 opening close #1524

Draft
wants to merge 15 commits into
base: releases
Choose a base branch
from
Draft

Conversation

clementetb
Copy link
Contributor

@clementetb clementetb commented Sep 20, 2023

This PR adds some benchmark measurements on opening and closing a Realm with generated classes.

Closes #1521

@clementetb clementetb self-assigned this Sep 20, 2023
@cla-bot cla-bot bot added the cla: yes label Sep 20, 2023
@clementetb
Copy link
Contributor Author

Execution results from running on a emulator.

478,177   ns         252 allocs    trace    OpenRealmTestsGenerated.openRealm[OneString-schema-size-0]
880,197   ns        2264 allocs    trace    OpenRealmTestsGenerated.openRealm[OneString-schema-size-25]
1,185,180   ns        4267 allocs    trace    OpenRealmTestsGenerated.openRealm[OneString-schema-size-50]
1,451,282   ns        6265 allocs    trace    OpenRealmTestsGenerated.openRealm[OneString-schema-size-75]
1,775,976   ns        8265 allocs    trace    OpenRealmTestsGenerated.openRealm[OneString-schema-size-100]
470,350   ns         252 allocs    trace    OpenRealmTestsGenerated.openRealm[OneStringRealmList-schema-size-0]
837,543   ns        2268 allocs    trace    OpenRealmTestsGenerated.openRealm[OneStringRealmList-schema-size-25]
1,135,842   ns        4265 allocs    trace    OpenRealmTestsGenerated.openRealm[OneStringRealmList-schema-size-50]
1,527,915   ns        6264 allocs    trace    OpenRealmTestsGenerated.openRealm[OneStringRealmList-schema-size-75]
1,847,464   ns        8266 allocs    trace    OpenRealmTestsGenerated.openRealm[OneStringRealmList-schema-size-100]
479,648   ns         252 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStrings-schema-size-0]
1,663,987   ns        7040 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStrings-schema-size-25]
2,697,291   ns       13815 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStrings-schema-size-50]
3,863,344   ns       20589 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStrings-schema-size-75]
5,131,282   ns       27365 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStrings-schema-size-100]
463,826   ns         252 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStringRealmLists-schema-size-0]
1,881,352   ns        7041 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStringRealmLists-schema-size-25]
3,128,938   ns       13815 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStringRealmLists-schema-size-50]
4,272,537   ns       20589 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStringRealmLists-schema-size-75]
5,920,404   ns       27364 allocs    trace    OpenRealmTestsGenerated.openRealm[TenStringRealmLists-schema-size-100]
479,138   ns         252 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStrings-schema-size-0]
10,690,978   ns       54538 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStrings-schema-size-25]
20,502,521   ns      108816 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStrings-schema-size-50]
30,413,542   ns      163087 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStrings-schema-size-75]
40,625,208   ns      217365 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStrings-schema-size-100]
484,688   ns         252 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStringRealmLists-schema-size-0]
13,937,750   ns       54539 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStringRealmLists-schema-size-25]
28,047,500   ns      108813 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStringRealmLists-schema-size-50]
45,065,625   ns      163088 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStringRealmLists-schema-size-75]
59,451,916   ns      217371 allocs    trace    OpenRealmTestsGenerated.openRealm[HundredStringRealmLists-schema-size-100]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant