Skip to content

Commit 00c4494

Browse files
MaelNamNamrtrieu
andauthored
Split RUM SDK performance impact docs (#32685)
* remove iOS mention from the Android benchmark docs * add iOS benchmark docs * add ios sdk perf impact to left nav * Update content/en/real_user_monitoring/application_monitoring/android/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Update content/en/real_user_monitoring/application_monitoring/ios/sdk_performance_impact.md Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> --------- Co-authored-by: Rosa Trieu <rosa.trieu@datadoghq.com> Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com>
1 parent 9308e15 commit 00c4494

File tree

3 files changed

+61
-30
lines changed

3 files changed

+61
-30
lines changed

config/_default/menus/main.en.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7794,6 +7794,11 @@ menu:
77947794
parent: rum_mobile_ios
77957795
identifier: rum_mobile_ios_supported_versions
77967796
weight: 110
7797+
- name: SDK Performance Impact
7798+
url: real_user_monitoring/application_monitoring/ios/sdk_performance_impact
7799+
parent: rum_mobile_ios
7800+
identifier: rum_mobile_ios_performance_overhead
7801+
weight: 111
77977802
- name: Flutter
77987803
url: real_user_monitoring/application_monitoring/flutter
77997804
parent: application_monitoring

content/en/real_user_monitoring/application_monitoring/android/sdk_performance_impact.md

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ When integrating any SDK into your Android application, understanding its perfor
1818

1919
## Performance impact benchmarks
2020

21-
### Android SDK
22-
23-
To simulate the typical usage of the Datadog SDK, it was integrated into the [Docile-Alligator/Infinity-For-Reddit][5] application and typical user behavior (in other words, scrolling the feed, browsing subreddits) was simulated.
21+
To simulate the typical usage of the Datadog SDK, it was integrated into the [Docile-Alligator/Infinity-For-Reddit][3] application and typical user behavior (in other words, scrolling the feed, browsing subreddits) was simulated.
2422

2523
The following SDK modules were added to the application:
2624

@@ -44,40 +42,16 @@ Below are the results of the measurements.
4442

4543
You can read the following [page][1] for more details about these benchmarks.
4644

47-
### iOS SDK
48-
49-
To simulate the typical usage of Datadog SDK, it was integrated into the [Beam][6] application and typical user behavior (scrolling the feed, browsing reddits) was simulated.
50-
51-
The SDK features that were used:
52-
1. Basic RUM instrumentation for tracking views, actions, and resources
53-
2. Logging
54-
3. Tracing
55-
56-
Below are the results of the measurements.
57-
58-
| Measurement | with SDK | without SDK |
59-
|-------------------|---------------------------------|-------------|
60-
| Peak CPU Usage | 44% | 40% |
61-
| Peak Memory Usage | 72.4 MB | 67.96 MB |
62-
| App startup time | 0.894 ms | 0.649 ms |
63-
| Bundle size | 23.6 MB | 22.2 MB |
64-
| Network usage | 21.88 KB sent, 1.68 KB received | n/a |
65-
66-
You can read the following [page][2] for more details about these benchmarks.
67-
6845
## Continuous benchmarks
6946

7047
Datadog has an internal infrastructure of continuous benchmarking. There is an internal set of UI tests that run on a special benchmark application for every change made to the SDK. This way Datadog is able to detect performance regression early to ensure that they are prevented from reaching production releases.
7148

72-
You can find the source code of the benchmark app here: [Android][3], [iOS][4].
49+
See the [benchmark app source code][2].
7350

7451
## Further Reading
7552

7653
{{< partial name="whats-next/whats-next.html" >}}
7754

7855
[1]: https://github.com/DataDog/dd-sdk-android/blob/develop/docs/sdk_performance.md
79-
[2]: https://github.com/DataDog/dd-sdk-ios/blob/develop/docs/sdk_performance.md
80-
[3]: https://github.com/DataDog/dd-sdk-android/tree/develop/sample/benchmark
81-
[4]: https://github.com/DataDog/dd-sdk-ios/tree/develop/BenchmarkTests
82-
[5]: https://github.com/Docile-Alligator/Infinity-For-Reddit
83-
[6]: https://github.com/awkward/beam
56+
[2]: https://github.com/DataDog/dd-sdk-android/tree/develop/sample/benchmark
57+
[3]: https://github.com/Docile-Alligator/Infinity-For-Reddit
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: SDK Performance Impact
3+
description: Learn about how the SDK impacts performance of your application.
4+
aliases:
5+
- /real_user_monitoring/mobile_and_tv_monitoring/ios/sdk_performance_impact
6+
further_reading:
7+
- link: https://github.com/DataDog/dd-sdk-ios
8+
tag: "Source Code"
9+
text: dd-sdk-ios Source code
10+
- link: /real_user_monitoring
11+
tag: Documentation
12+
text: Explore Real User Monitoring
13+
---
14+
15+
## Overview
16+
17+
When integrating any SDK into your iOS application, understanding its performance impact is crucial for maintaining a smooth user experience. The Datadog RUM SDK is designed with minimal performance overhead. Use these benchmarks to evaluate whether the SDK fits your app's performance budget and plan your integration accordingly.
18+
19+
## Performance impact benchmarks
20+
21+
To simulate the typical usage of Datadog SDK, it was integrated into the [Beam][1] application and typical user behavior (scrolling the feed, browsing subreddits) was simulated.
22+
23+
The SDK features used:
24+
1. Basic RUM instrumentation for tracking views, actions, and resources
25+
2. Logging
26+
3. Tracing
27+
28+
Below are the results of the measurements.
29+
30+
| Measurement | with SDK | without SDK |
31+
|-------------------|---------------------------------|-------------|
32+
| Peak CPU Usage | 44% | 40% |
33+
| Peak Memory Usage | 72.4 MB | 67.96 MB |
34+
| App startup time | 0.894 ms | 0.649 ms |
35+
| Bundle size | 23.6 MB | 22.2 MB |
36+
| Network usage | 21.88 KB sent, 1.68 KB received | n/a |
37+
38+
See the [SDK performance details on GitHub][2] for more information.
39+
40+
## Continuous benchmarks
41+
42+
Datadog has an internal infrastructure of continuous benchmarking. UI tests run automatically on a benchmark application for every SDK change. This enables Datadog to detect performance regressions early to ensure that they are prevented from reaching production releases.
43+
44+
See the [benchmark app's source code on GitHub][3].
45+
46+
## Further Reading
47+
48+
{{< partial name="whats-next/whats-next.html" >}}
49+
50+
[1]: https://github.com/awkward/beam
51+
[2]: https://github.com/DataDog/dd-sdk-ios/blob/develop/docs/sdk_performance.md
52+
[3]: https://github.com/DataDog/dd-sdk-ios/tree/develop/BenchmarkTests

0 commit comments

Comments
 (0)