예제 #1
0
        public async Task <TestResult> InsertThousandItems()
        {
            TestResult testResult = new TestResult();

            testResult.TestType = (int)TestType.ThousandInsert;

            _realmRepository.Clear();
            await _sqliteRepository.Clear();

            // Insert result for realm
            var realmResult = _realmRepository.InsertThousandItems();

            // Insert result for Sqlite
            var sqlResult = await _sqliteRepository.InsertThousandItems();

            testResult.RealmMilliseconds = realmResult;
            testResult.SqlMilliseconds   = sqlResult;

            return(testResult);
        }