iOS_benchmark

guoling edited this page Sep 19, 2018 · 2 revisions

MMKV for iOS

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 NSUserDefaults, repeating each operation 1w times. The result is in the chart below. The benchmark code can be found in iOS/MMKVDemo/MMKVDemo/ project.

As we can see, MMKV beats NSUserDefaults on writing values, while equals or outranges NSUserDefaults on reading values.

Running on iPhone X 256G, iOS 12 beta 2. Repeating each operation 1w 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.