Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.
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
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.