diff --git a/examples/ReactNativeBenchmarks/benchmarks.js b/examples/ReactNativeBenchmarks/benchmarks.js index d3ac5650..0d6d5c07 100644 --- a/examples/ReactNativeBenchmarks/benchmarks.js +++ b/examples/ReactNativeBenchmarks/benchmarks.js @@ -84,9 +84,9 @@ class RealmTests extends Tests { async insertions() { var realm = this.realm; - for (let i = 0; i < numTestObjects; i++) { + for (var obj of this.testObjects(numTestObjects)) { realm.write(() => { - realm.create("TestObject", { int: i % numQueryBuckets, double: i, date: new Date(i), string: "" + i }); + realm.create("TestObject", obj); }); } }