Skip to content

iOS_benchmark

guoling edited this page Apr 19, 2024 · 2 revisions

MMKV for iOS/macOS

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

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 11 Pro Max 64G, iOS 13.3.1. Repeating each operation 1w times. Counting in milliseconds.

Clone this wiki locally