android_benchmark

guoling edited this page Sep 19, 2018 · 2 revisions

MMKV for Android

MMKV is an efficient, samll, easy-to-use mobile key-value storage framework used in the WeChat application. It's currently available on iOS and Android.

Performance

We test MMKV side-by-side with SharedPreferences & SQLite, repeating each operation 1k times. The result is in the chart below. The benchmark code can be found in Android/MMKV/mmkvdemo/ project.

  • Baseline Performance
    As we can see, MMKV beats SharedPreferences & SQLite on writing values, while equals or outranges them on reading values.

    (Running on Pixel 2 XL 64G, Android 8.1. Repeating each operation 1k times. Counting in milliseconds.)

  • Multi-Process Performance
    As we can see, MMKV beats MultiProcessSharedPreferences & SQLite on writing and reading values. MMKV is the chosen one when it comes to Multi-Process key-value storage on Android.

    (Running on Pixel 2 XL 64G, Android 8.1. Repeating each operation 1k times. Counting in milliseconds.)

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.