Skip to content

Commit

Permalink
chore: Update Benchmark to direct to separate repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed May 10, 2022
1 parent 1824c12 commit f2065c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 46 deletions.
10 changes: 7 additions & 3 deletions README.md
Expand Up @@ -52,11 +52,15 @@ react-native-mmkv is sponsored by **getstream.io**. <br/>

## Benchmark

[StorageBenchmark](https://github.com/mrousavy/StorageBenchmark) compares popular storage libraries against each other by reading a value from storage for 1000 times:

<div align="center">
<img src="./img/benchmark_1000_get.png" />
<a href="https://github.com/mrousavy/StorageBenchmark">
<img src="./img/benchmark_1000_get.png" />
</a>
<p>
<b>AsyncStorage vs MMKV</b>: Reading a value from Storage 1000 times. <br/>
Measured in milliseconds on an iPhone 8, lower is better.
<b>MMKV vs other storage libraries</b>: Reading a value from Storage 1000 times. <br/>
Measured in milliseconds on an iPhone 11 Pro, lower is better. <br/>
</p>
</div>

Expand Down
6 changes: 0 additions & 6 deletions example/src/App.tsx
Expand Up @@ -3,12 +3,6 @@ import * as React from 'react';
import { StyleSheet, View, TextInput, Alert, Button, Text } from 'react-native';
import { MMKV, useMMKVString } from 'react-native-mmkv';

// Uncomment to run benchmark
// import { benchmarkAgainstAsyncStorage } from './Benchmarks';
// setTimeout(async () => {
// await benchmarkAgainstAsyncStorage();
// }, 5000);

const storage = new MMKV();

export default function App() {
Expand Down
37 changes: 0 additions & 37 deletions example/src/Benchmarks.ts

This file was deleted.

Binary file modified img/benchmark_1000_get.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f2065c5

Please sign in to comment.