├── ios
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ ├── flutter_export_environment.sh
│ └── AppFrameworkInfo.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── .gitignore
└── Podfile
├── .gitattributes
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
├── manifest.json
└── index.html
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── hive_benchmark
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── macos
├── .gitignore
├── Runner
│ ├── Configs
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ ├── Warnings.xcconfig
│ │ └── AppInfo.xcconfig
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_64.png
│ │ │ ├── app_icon_1024.png
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_512.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Release.entitlements
│ ├── DebugProfile.entitlements
│ ├── MainFlutterWindow.swift
│ ├── Info.plist
│ └── Base.lproj
│ │ └── MainMenu.xib
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
├── Podfile
└── Podfile.lock
├── .metadata
├── lib
├── runners
│ ├── runner.dart
│ ├── sqflite.dart
│ ├── shared_preferences.dart
│ ├── sembast.dart
│ ├── hive.dart
│ └── sql_ffi.dart
├── generated_plugin_registrant.dart
├── sqlite_store.dart
├── benchmark.dart
└── main.dart
├── pubspec.yaml
├── README.md
├── .gitignore
├── .flutter-plugins-dependencies
└── pubspec.lock
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/xcuserdata/
7 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hivedb/hive_benchmark/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/hive_benchmark/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.hive_benchmark
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/lib/runners/runner.dart:
--------------------------------------------------------------------------------
1 | abstract class BenchmarkRunner {
2 | String get name;
3 |
4 | Future setUp();
5 | Future tearDown();
6 |
7 | Future batchReadInt(List keys);
8 | Future batchReadString(List keys);
9 | Future batchWriteInt(Map entries);
10 | Future batchWriteString(Map entries);
11 | Future batchDeleteInt(List keys);
12 | Future batchDeleteString(List keys);
13 | }
14 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/lib/generated_plugin_registrant.dart:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // ignore_for_file: directives_ordering
6 | // ignore_for_file: lines_longer_than_80_chars
7 |
8 | import 'package:shared_preferences_web/shared_preferences_web.dart';
9 |
10 | import 'package:flutter_web_plugins/flutter_web_plugins.dart';
11 |
12 | // ignore: public_member_api_docs
13 | void registerPlugins(Registrar registrar) {
14 | SharedPreferencesPlugin.registerWith(registrar);
15 | registrar.registerMessageHandler();
16 | }
17 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: hive_benchmark
2 |
3 | version: 1.0.0+1
4 |
5 | environment:
6 | sdk: ">=2.12.2 <3.0.0"
7 |
8 | dependencies:
9 | flutter:
10 | sdk: flutter
11 |
12 | path_provider: ^2.0.2
13 | path: ^1.8.0
14 | random_string: ^2.2.0-nullsafety
15 | hive: ^2.0.4
16 | sqflite: ^2.0.0+3
17 | shared_preferences: ^2.0.6
18 | fl_chart: ^0.36.2
19 | sqlite3: ^1.1.2
20 | sqlite3_flutter_libs: ^0.5.0
21 | sembast: ^3.1.0+2
22 | logging: ^1.0.1
23 |
24 | flutter:
25 | uses-material-design: true
26 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Flutter/flutter_export_environment.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # This is a generated file; do not edit or check into version control.
3 | export "FLUTTER_ROOT=/Users/jahidul/flutter"
4 | export "FLUTTER_APPLICATION_PATH=/Users/jahidul/StudioProjects/hive_benchmark"
5 | export "COCOAPODS_PARALLEL_CODE_SIGN=true"
6 | export "FLUTTER_TARGET=lib/main.dart"
7 | export "FLUTTER_BUILD_DIR=build"
8 | export "FLUTTER_BUILD_NAME=1.0.0"
9 | export "FLUTTER_BUILD_NUMBER=1"
10 | export "DART_OBFUSCATION=false"
11 | export "TRACK_WIDGET_CREATION=false"
12 | export "TREE_SHAKE_ICONS=false"
13 | export "PACKAGE_CONFIG=.packages"
14 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # hive_benchmark
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hive_benchmark",
3 | "short_name": "hive_benchmark",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = hive_benchmark
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveBenchmark
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2021 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import path_provider_macos
9 | import shared_preferences_macos
10 | import sqflite
11 | import sqlite3_flutter_libs
12 |
13 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
14 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
15 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
16 | SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
17 | Sqlite3FlutterLibsPlugin.register(with: registry.registrar(forPlugin: "Sqlite3FlutterLibsPlugin"))
18 | }
19 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/macos/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, '10.11'
2 |
3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5 |
6 | project 'Runner', {
7 | 'Debug' => :debug,
8 | 'Profile' => :release,
9 | 'Release' => :release,
10 | }
11 |
12 | def flutter_root
13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
14 | unless File.exist?(generated_xcode_build_settings_path)
15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
16 | end
17 |
18 | File.foreach(generated_xcode_build_settings_path) do |line|
19 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
20 | return matches[1].strip if matches
21 | end
22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
23 | end
24 |
25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
26 |
27 | flutter_macos_podfile_setup
28 |
29 | target 'Runner' do
30 | use_frameworks!
31 | use_modular_headers!
32 |
33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
34 | end
35 |
36 | post_install do |installer|
37 | installer.pods_project.targets.each do |target|
38 | flutter_additional_macos_build_settings(target)
39 | end
40 | end
41 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # Visual Studio Code related
19 | .vscode/
20 |
21 | # Flutter/Dart/Pub related
22 | **/doc/api/
23 | .dart_tool/
24 | .flutter-plugins
25 | .packages
26 | .pub-cache/
27 | .pub/
28 | /build/
29 |
30 | # Android related
31 | **/android/**/gradle-wrapper.jar
32 | **/android/.gradle
33 | **/android/captures/
34 | **/android/gradlew
35 | **/android/gradlew.bat
36 | **/android/local.properties
37 | **/android/**/GeneratedPluginRegistrant.java
38 |
39 | # iOS/XCode related
40 | **/ios/**/*.mode1v3
41 | **/ios/**/*.mode2v3
42 | **/ios/**/*.moved-aside
43 | **/ios/**/*.pbxuser
44 | **/ios/**/*.perspectivev3
45 | **/ios/**/*sync/
46 | **/ios/**/.sconsign.dblite
47 | **/ios/**/.tags*
48 | **/ios/**/.vagrant/
49 | **/ios/**/DerivedData/
50 | **/ios/**/Icon?
51 | **/ios/**/Pods/
52 | **/ios/**/.symlinks/
53 | **/ios/**/profile
54 | **/ios/**/xcuserdata
55 | **/ios/.generated/
56 | **/ios/Flutter/App.framework
57 | **/ios/Flutter/Flutter.framework
58 | **/ios/Flutter/Generated.xcconfig
59 | **/ios/Flutter/app.flx
60 | **/ios/Flutter/app.zip
61 | **/ios/Flutter/flutter_assets/
62 | **/ios/ServiceDefinitions.json
63 | **/ios/Runner/GeneratedPluginRegistrant.*
64 |
65 | # Exceptions to above rules.
66 | !**/ios/**/default.mode1v3
67 | !**/ios/**/default.mode2v3
68 | !**/ios/**/default.pbxuser
69 | !**/ios/**/default.perspectivev3
70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
71 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | hive_benchmark
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 31
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.example.hive_benchmark"
38 | minSdkVersion 18
39 | targetSdkVersion 31
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/lib/runners/sqflite.dart:
--------------------------------------------------------------------------------
1 | import 'package:hive_benchmark/runners/runner.dart';
2 |
3 | import '../sqlite_store.dart';
4 |
5 | class SqfliteRunner implements BenchmarkRunner {
6 | late SqfliteStore store;
7 |
8 | @override
9 | String get name => 'sqflite';
10 |
11 | @override
12 | Future setUp() async {
13 | store = SqfliteStore();
14 | await store.init();
15 | }
16 |
17 | @override
18 | Future tearDown() async {
19 | await store.close();
20 | }
21 |
22 | @override
23 | Future batchReadInt(List keys) async {
24 | var s = Stopwatch()..start();
25 | for (var key in keys) {
26 | await store.getInt(key);
27 | }
28 | s.stop();
29 | return s.elapsedMilliseconds;
30 | }
31 |
32 | @override
33 | Future batchReadString(List keys) async {
34 | var s = Stopwatch()..start();
35 | for (var key in keys) {
36 | await store.getString(key);
37 | }
38 | s.stop();
39 | return s.elapsedMilliseconds;
40 | }
41 |
42 | @override
43 | Future batchWriteInt(Map entries) async {
44 | var s = Stopwatch()..start();
45 | for (var key in entries.keys) {
46 | await store.putInt(key, entries[key]!);
47 | }
48 | s.stop();
49 | return s.elapsedMilliseconds;
50 | }
51 |
52 | @override
53 | Future batchWriteString(Map entries) async {
54 | var s = Stopwatch()..start();
55 | for (var key in entries.keys) {
56 | await store.putString(key, entries[key]!);
57 | }
58 | s.stop();
59 | return s.elapsedMilliseconds;
60 | }
61 |
62 | @override
63 | Future batchDeleteInt(List keys) async {
64 | var s = Stopwatch()..start();
65 | for (var key in keys) {
66 | await store.deleteInt(key);
67 | }
68 | s.stop();
69 | return s.elapsedMilliseconds;
70 | }
71 |
72 | @override
73 | Future batchDeleteString(List keys) async {
74 | var s = Stopwatch()..start();
75 | for (var key in keys) {
76 | await store.deleteString(key);
77 | }
78 | s.stop();
79 | return s.elapsedMilliseconds;
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/lib/sqlite_store.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:path_provider/path_provider.dart';
4 | import 'package:sqflite/sqflite.dart';
5 | import 'package:path/path.dart' as path;
6 |
7 | class SqfliteStore {
8 | static const String TABLE_NAME_STR = "kv_str";
9 | static const String TABLE_NAME_INT = "kv_int";
10 | late Database db;
11 |
12 | Future init() async {
13 | var dir = await getApplicationDocumentsDirectory();
14 | var dbPath = path.join(dir.path, 'sqlite.db');
15 | if (await File(dbPath).exists()) {
16 | await File(dbPath).delete();
17 | }
18 | db = await openDatabase(
19 | dbPath,
20 | onCreate: (db, version) async {
21 | await db.execute(
22 | 'CREATE TABLE $TABLE_NAME_STR (key TEXT PRIMARY KEY, value TEXT)',
23 | );
24 | await db.execute(
25 | 'CREATE TABLE $TABLE_NAME_INT (key TEXT PRIMARY KEY, value INTEGER)',
26 | );
27 | },
28 | version: 1,
29 | );
30 | }
31 |
32 | Future getInt(String key) async {
33 | var result = await db.query(
34 | TABLE_NAME_INT,
35 | where: "key = ?",
36 | whereArgs: [key],
37 | );
38 | return result[0]['value'] as int;
39 | }
40 |
41 | Future putInt(String key, int value) {
42 | return db.insert(
43 | TABLE_NAME_INT,
44 | {'key': key, 'value': value},
45 | conflictAlgorithm: ConflictAlgorithm.replace,
46 | );
47 | }
48 |
49 | Future deleteInt(String key) {
50 | return db.delete(
51 | TABLE_NAME_INT,
52 | where: "key = ?",
53 | whereArgs: [key],
54 | );
55 | }
56 |
57 | Future getString(String key) async {
58 | var result = await db.query(
59 | TABLE_NAME_STR,
60 | where: "key = ?",
61 | whereArgs: [key],
62 | );
63 | return result[0]['value'] as String;
64 | }
65 |
66 | Future putString(String key, String value) {
67 | return db.insert(
68 | TABLE_NAME_STR,
69 | {'key': key, 'value': value},
70 | conflictAlgorithm: ConflictAlgorithm.replace,
71 | );
72 | }
73 |
74 | Future deleteString(String key) {
75 | return db.delete(
76 | TABLE_NAME_STR,
77 | where: "key = ?",
78 | whereArgs: [key],
79 | );
80 | }
81 |
82 | Future close() {
83 | return db.close();
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
14 |
18 |
22 |
27 |
31 |
32 |
33 |
34 |
35 |
36 |
38 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/lib/runners/shared_preferences.dart:
--------------------------------------------------------------------------------
1 | import 'package:hive_benchmark/runners/runner.dart';
2 | import 'package:shared_preferences/shared_preferences.dart';
3 |
4 | class SharedPreferencesRunner implements BenchmarkRunner {
5 | late SharedPreferences prefs;
6 |
7 | @override
8 | String get name => 'Shared Preferences';
9 |
10 | @override
11 | Future setUp() async {
12 | prefs = await SharedPreferences.getInstance();
13 | await prefs.clear();
14 | }
15 |
16 | @override
17 | Future tearDown() async {
18 | // nothing to do here, cleared in setUp
19 | }
20 |
21 | @override
22 | Future batchReadInt(List keys) async {
23 | var prefs = await SharedPreferences.getInstance();
24 | var s = Stopwatch()..start();
25 | for (var key in keys) {
26 | prefs.getInt(key);
27 | }
28 | s.stop();
29 | return s.elapsedMilliseconds;
30 | }
31 |
32 | @override
33 | Future batchReadString(List keys) async {
34 | var prefs = await SharedPreferences.getInstance();
35 | var s = Stopwatch()..start();
36 | for (var key in keys) {
37 | prefs.getString(key);
38 | }
39 | s.stop();
40 | return s.elapsedMilliseconds;
41 | }
42 |
43 | @override
44 | Future batchWriteInt(Map entries) async {
45 | var s = Stopwatch()..start();
46 | var prefs = await SharedPreferences.getInstance();
47 | for (var key in entries.keys) {
48 | await prefs.setInt(key, entries[key]!);
49 | }
50 | s.stop();
51 | return s.elapsedMilliseconds;
52 | }
53 |
54 | @override
55 | Future batchWriteString(Map entries) async {
56 | var s = Stopwatch()..start();
57 | var prefs = await SharedPreferences.getInstance();
58 | for (var key in entries.keys) {
59 | await prefs.setString(key, entries[key]!);
60 | }
61 | s.stop();
62 | return s.elapsedMilliseconds;
63 | }
64 |
65 | @override
66 | Future batchDeleteInt(List keys) async {
67 | var s = Stopwatch()..start();
68 | var prefs = await SharedPreferences.getInstance();
69 | for (var key in keys) {
70 | await prefs.remove(key);
71 | }
72 | s.stop();
73 | return s.elapsedMilliseconds;
74 | }
75 |
76 | @override
77 | Future batchDeleteString(List keys) {
78 | return batchDeleteInt(keys);
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/macos/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - FlutterMacOS (1.0.0)
3 | - FMDB (2.7.5):
4 | - FMDB/standard (= 2.7.5)
5 | - FMDB/standard (2.7.5)
6 | - path_provider_macos (0.0.1):
7 | - FlutterMacOS
8 | - shared_preferences_macos (0.0.1):
9 | - FlutterMacOS
10 | - sqflite (0.0.2):
11 | - FlutterMacOS
12 | - FMDB (>= 2.7.5)
13 | - sqlite3 (3.35.5):
14 | - sqlite3/common (= 3.35.5)
15 | - sqlite3/common (3.35.5)
16 | - sqlite3/fts5 (3.35.5):
17 | - sqlite3/common
18 | - sqlite3/json1 (3.35.5):
19 | - sqlite3/common
20 | - sqlite3/perf-threadsafe (3.35.5):
21 | - sqlite3/common
22 | - sqlite3/rtree (3.35.5):
23 | - sqlite3/common
24 | - sqlite3_flutter_libs (0.0.1):
25 | - FlutterMacOS
26 | - sqlite3 (~> 3.35.4)
27 | - sqlite3/fts5
28 | - sqlite3/json1
29 | - sqlite3/perf-threadsafe
30 | - sqlite3/rtree
31 |
32 | DEPENDENCIES:
33 | - FlutterMacOS (from `Flutter/ephemeral`)
34 | - path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`)
35 | - shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`)
36 | - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`)
37 | - sqlite3_flutter_libs (from `Flutter/ephemeral/.symlinks/plugins/sqlite3_flutter_libs/macos`)
38 |
39 | SPEC REPOS:
40 | trunk:
41 | - FMDB
42 | - sqlite3
43 |
44 | EXTERNAL SOURCES:
45 | FlutterMacOS:
46 | :path: Flutter/ephemeral
47 | path_provider_macos:
48 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos
49 | shared_preferences_macos:
50 | :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos
51 | sqflite:
52 | :path: Flutter/ephemeral/.symlinks/plugins/sqflite/macos
53 | sqlite3_flutter_libs:
54 | :path: Flutter/ephemeral/.symlinks/plugins/sqlite3_flutter_libs/macos
55 |
56 | SPEC CHECKSUMS:
57 | FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424
58 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
59 | path_provider_macos: a0a3fd666cb7cd0448e936fb4abad4052961002b
60 | shared_preferences_macos: 480ce071d0666e37cef23fe6c702293a3d21799e
61 | sqflite: a5789cceda41d54d23f31d6de539d65bb14100ea
62 | sqlite3: 75da32fd4e3574f6c38566a9f0114cfe792c8db5
63 | sqlite3_flutter_libs: b8781af39b939e25ca76000127ed83312b974f08
64 |
65 | PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
66 |
67 | COCOAPODS: 1.10.1
68 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/lib/runners/sembast.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:hive_benchmark/runners/runner.dart';
4 | import 'package:sembast/sembast.dart';
5 | import 'package:path_provider/path_provider.dart';
6 | import 'package:path/path.dart' as path;
7 | import 'package:sembast/sembast_io.dart';
8 |
9 | class SembasRunner implements BenchmarkRunner {
10 | late Database db;
11 | late StoreRef store;
12 |
13 | @override
14 | String get name => 'Sembast';
15 |
16 | @override
17 | Future setUp() async {
18 | var dir = await getApplicationDocumentsDirectory();
19 | var file = File(path.join(dir.path, 'sembast.db'));
20 | if (file.existsSync()) {
21 | await file.delete();
22 | }
23 |
24 | db = await databaseFactoryIo.openDatabase(file.path);
25 | store = StoreRef.main();
26 | }
27 |
28 | @override
29 | Future tearDown() async {
30 | await db.close();
31 | }
32 |
33 | @override
34 | Future batchDeleteInt(List keys) async {
35 | var s = Stopwatch()..start();
36 | await db.transaction((tx) async {
37 | for (final key in keys) {
38 | await store.record(key).delete(tx);
39 | }
40 | });
41 | s.stop();
42 | return s.elapsedMilliseconds;
43 | }
44 |
45 | @override
46 | Future batchDeleteString(List keys) {
47 | return batchDeleteInt(keys);
48 | }
49 |
50 | @override
51 | Future batchReadInt(List keys) async {
52 | var s = Stopwatch()..start();
53 | await db.transaction((tx) async {
54 | for (final key in keys) {
55 | await store.record(key).get(tx);
56 | }
57 | });
58 | s.stop();
59 | return s.elapsedMilliseconds;
60 | }
61 |
62 | @override
63 | Future batchReadString(List keys) {
64 | return batchReadInt(keys);
65 | }
66 |
67 | @override
68 | Future batchWriteInt(Map entries) async {
69 | var s = Stopwatch()..start();
70 | await db.transaction((tx) async {
71 | for (final key in entries.keys) {
72 | await store.record(key).put(tx, entries[key]);
73 | }
74 | });
75 | s.stop();
76 | return s.elapsedMilliseconds;
77 | }
78 |
79 | @override
80 | Future batchWriteString(Map entries) async {
81 | var s = Stopwatch()..start();
82 | await db.transaction((tx) async {
83 | for (final key in entries.keys) {
84 | await store.record(key).put(tx, entries[key]);
85 | }
86 | });
87 | s.stop();
88 | return s.elapsedMilliseconds;
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/lib/runners/hive.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:hive/hive.dart';
4 | import 'package:hive_benchmark/runners/runner.dart';
5 | import 'package:path_provider/path_provider.dart';
6 | import 'package:path/path.dart' as path;
7 |
8 | class HiveRunner implements BenchmarkRunner {
9 | final bool lazy;
10 |
11 | HiveRunner(this.lazy);
12 |
13 | @override
14 | String get name => lazy ? 'Hive (lazy)' : 'Hive';
15 |
16 | @override
17 | Future setUp() async {
18 | if (lazy) return; // only do this work in the non-lazy runner
19 |
20 | var dir = await getApplicationDocumentsDirectory();
21 | var homePath = path.join(dir.path, 'hive');
22 | if (await Directory(homePath).exists()) {
23 | await Directory(homePath).delete(recursive: true);
24 | }
25 | await Directory(homePath).create();
26 | Hive.init(homePath);
27 | }
28 |
29 | @override
30 | Future tearDown() async {
31 | if (lazy) return;
32 | await Hive.close();
33 | }
34 |
35 | @override
36 | Future batchReadInt(List keys) async {
37 | final box = await Hive.openBox2('box', lazy: lazy);
38 |
39 | if (box.lazy) {
40 | final s = Stopwatch()..start();
41 | for (var key in keys) {
42 | await (box as LazyBox).get(key);
43 | }
44 | s.stop();
45 | await box.close();
46 | return s.elapsedMilliseconds;
47 | } else {
48 | final s = Stopwatch()..start();
49 | for (var key in keys) {
50 | (box as Box).get(key);
51 | }
52 | s.stop();
53 | await box.close();
54 | return s.elapsedMilliseconds;
55 | }
56 | }
57 |
58 | @override
59 | Future batchReadString(List keys) {
60 | return batchReadInt(keys); // implementation is the same for hive
61 | }
62 |
63 | @override
64 | Future batchWriteString(Map entries) async {
65 | var box = await Hive.openBox2('box', lazy: lazy);
66 | var s = Stopwatch()..start();
67 | for (var key in entries.keys) {
68 | await box.put(key, entries[key]);
69 | }
70 | s.stop();
71 | await box.close();
72 | return s.elapsedMilliseconds;
73 | }
74 |
75 | @override
76 | Future batchWriteInt(Map entries) {
77 | return batchWriteString(entries);
78 | }
79 |
80 | @override
81 | Future batchDeleteInt(List keys) async {
82 | var box = await Hive.openBox2('box', lazy: lazy);
83 | var s = Stopwatch()..start();
84 | for (var key in keys) {
85 | await box.delete(key);
86 | }
87 | s.stop();
88 | await box.close();
89 | return s.elapsedMilliseconds;
90 | }
91 |
92 | @override
93 | Future batchDeleteString(List keys) {
94 | return batchDeleteInt(keys);
95 | }
96 | }
97 |
98 | extension on HiveInterface {
99 | Future> openBox2(String name, {required bool lazy}) {
100 | if (lazy) {
101 | return this.openLazyBox(name);
102 | } else {
103 | return this.openBox(name);
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/lib/runners/sql_ffi.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:hive_benchmark/runners/runner.dart';
4 | import 'package:path/path.dart' as path;
5 | import 'package:path_provider/path_provider.dart';
6 | import 'package:sqlite3/sqlite3.dart';
7 |
8 | import '../benchmark.dart';
9 |
10 | class SqlFfiRunner implements BenchmarkRunner {
11 | @override
12 | String get name => 'SQL (ffi)';
13 |
14 | late Database db;
15 |
16 | @override
17 | Future setUp() async {
18 | var dir = await getApplicationDocumentsDirectory();
19 | var homePath = path.join(dir.path, 'ffi.db');
20 | final file = File(homePath);
21 |
22 | if (await file.exists()) {
23 | await file.delete();
24 | }
25 |
26 | db = sqlite3.open(file.path);
27 |
28 | db.execute(
29 | 'CREATE TABLE $TABLE_NAME_STR (key TEXT PRIMARY KEY, value TEXT)');
30 | db.execute(
31 | 'CREATE TABLE $TABLE_NAME_INT (key TEXT PRIMARY KEY, value INTEGER)');
32 | }
33 |
34 | @override
35 | Future tearDown() async {
36 | db.dispose();
37 | }
38 |
39 | Future _batchRead(String table, List keys) async {
40 | var s = Stopwatch()..start();
41 | final stmt = db.prepare('SELECT * FROM $table WHERE key = ?');
42 |
43 | for (var key in keys) {
44 | final result = stmt.select([key]);
45 | // read all rows because that would be required during a real read
46 | result.forEach((row) => row['value']);
47 | }
48 |
49 | s.stop();
50 | stmt.dispose();
51 | return s.elapsedMilliseconds;
52 | }
53 |
54 | @override
55 | Future batchReadInt(List keys) async {
56 | return _batchRead(TABLE_NAME_INT, keys);
57 | }
58 |
59 | @override
60 | Future batchReadString(List keys) {
61 | return _batchRead(TABLE_NAME_STR, keys);
62 | }
63 |
64 | @override
65 | Future batchWriteInt(Map entries) async {
66 | var s = Stopwatch()..start();
67 | final stmt = db.prepare(
68 | 'INSERT OR REPLACE INTO $TABLE_NAME_INT (key, value) VALUES (?, ?)');
69 |
70 | entries.forEach((key, value) {
71 | stmt.execute([key, value]);
72 | });
73 |
74 | stmt.dispose();
75 | s.stop();
76 | return s.elapsedMilliseconds;
77 | }
78 |
79 | @override
80 | Future batchWriteString(Map entries) async {
81 | var s = Stopwatch()..start();
82 | final stmt = db.prepare(
83 | 'INSERT OR REPLACE INTO $TABLE_NAME_STR (key, value) VALUES (?, ?)');
84 |
85 | entries.forEach((key, value) {
86 | stmt.execute([key, value]);
87 | });
88 |
89 | stmt.dispose();
90 | s.stop();
91 | return s.elapsedMilliseconds;
92 | }
93 |
94 | Future _deleteFromTable(String table, List keys) async {
95 | var s = Stopwatch()..start();
96 | final stmt = db.prepare('DELETE FROM $table WHERE key = ?');
97 |
98 | for (var key in keys) {
99 | stmt.execute([key]);
100 | }
101 |
102 | stmt.dispose();
103 | s.stop();
104 | return s.elapsedMilliseconds;
105 | }
106 |
107 | @override
108 | Future batchDeleteInt(List keys) {
109 | return _deleteFromTable(TABLE_NAME_INT, keys);
110 | }
111 |
112 | @override
113 | Future batchDeleteString(List keys) {
114 | return _deleteFromTable(TABLE_NAME_STR, keys);
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
64 |
65 |
71 |
73 |
79 |
80 |
81 |
82 |
84 |
85 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/.flutter-plugins-dependencies:
--------------------------------------------------------------------------------
1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_ios","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.11/","dependencies":[]},{"name":"shared_preferences_ios","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/","dependencies":[]},{"name":"sqflite","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2+1/","dependencies":[]},{"name":"sqlite3_flutter_libs","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3_flutter_libs-0.5.10/","dependencies":[]}],"android":[{"name":"path_provider_android","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.20/","dependencies":[]},{"name":"shared_preferences_android","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.13/","dependencies":[]},{"name":"sqflite","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2+1/","dependencies":[]},{"name":"sqlite3_flutter_libs","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3_flutter_libs-0.5.10/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6/","dependencies":[]},{"name":"shared_preferences_macos","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.4/","dependencies":[]},{"name":"sqflite","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2+1/","dependencies":[]},{"name":"sqlite3_flutter_libs","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3_flutter_libs-0.5.10/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.1.1/","dependencies":["path_provider_linux"]},{"name":"sqlite3_flutter_libs","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3_flutter_libs-0.5.10/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.7/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.1.1/","dependencies":["path_provider_windows"]},{"name":"sqlite3_flutter_libs","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3_flutter_libs-0.5.10/","dependencies":[]}],"web":[{"name":"shared_preferences_web","path":"/Users/jahidul/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.4/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_android","path_provider_ios","path_provider_linux","path_provider_macos","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_ios","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_ios","shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_ios","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","dependencies":[]},{"name":"sqlite3_flutter_libs","dependencies":[]}],"date_created":"2022-09-30 16:57:01.645862","version":"2.10.3"}
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | hive_benchmark
27 |
28 |
29 |
30 |
33 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/lib/benchmark.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math';
2 |
3 | import 'package:hive_benchmark/runners/hive.dart';
4 | import 'package:hive_benchmark/runners/sembast.dart';
5 | import 'package:hive_benchmark/runners/sql_ffi.dart';
6 | import 'package:hive_benchmark/runners/runner.dart';
7 | import 'package:hive_benchmark/runners/shared_preferences.dart';
8 | import 'package:hive_benchmark/runners/sqflite.dart';
9 | import 'package:logging/logging.dart';
10 | import 'package:random_string/random_string.dart' as randStr;
11 |
12 | const String TABLE_NAME_STR = "kv_str";
13 | const String TABLE_NAME_INT = "kv_int";
14 |
15 | class Result {
16 | final BenchmarkRunner runner;
17 | int intTime = 0;
18 | int stringTime = 0;
19 |
20 | Result(this.runner);
21 | }
22 |
23 | final runners = [
24 | HiveRunner(false),
25 | HiveRunner(true),
26 | SqfliteRunner(),
27 | SharedPreferencesRunner(),
28 | SqlFfiRunner(),
29 | SembasRunner(),
30 | ];
31 |
32 | List _createResults() {
33 | return runners.map((r) => Result(r)).toList();
34 | }
35 |
36 | Map generateIntEntries(int count) {
37 | var map = Map();
38 | var random = Random();
39 | for (var i = 0; i < count; i++) {
40 | var key = randStr.randomAlphaNumeric(randStr.randomBetween(5, 200));
41 | var val = random.nextInt(1 << 32);
42 | map[key] = val;
43 | }
44 | return map;
45 | }
46 |
47 | Map generateStringEntries(int count) {
48 | var map = Map();
49 | for (var i = 0; i < count; i++) {
50 | var key = randStr.randomAlphaNumeric(randStr.randomBetween(5, 200));
51 | var val = randStr.randomString(randStr.randomBetween(5, 1000));
52 | map[key] = val;
53 | }
54 | return map;
55 | }
56 |
57 | Logger _logger = Logger('Benchmark');
58 |
59 | Future> benchmarkRead(int count) async {
60 | _logger.fine('Benchmarking read($count)');
61 |
62 | var results = _createResults();
63 |
64 | var intEntries = generateIntEntries(count);
65 | var intKeys = intEntries.keys.toList()..shuffle();
66 |
67 | for (var result in results) {
68 | _logger.info('Running ${result.runner.name}...');
69 | await result.runner.setUp();
70 | await result.runner.batchWriteInt(intEntries);
71 | result.intTime = await result.runner.batchReadInt(intKeys);
72 | }
73 |
74 | var stringEntries = generateStringEntries(count);
75 | var stringKeys = stringEntries.keys.toList()..shuffle();
76 |
77 | for (var result in results) {
78 | _logger.info('Running ${result.runner.name}...');
79 | await result.runner.batchWriteString(stringEntries);
80 | result.stringTime = await result.runner.batchReadString(stringKeys);
81 | }
82 |
83 | for (var result in results) {
84 | await result.runner.tearDown();
85 | }
86 |
87 | return results;
88 | }
89 |
90 | Future> benchmarkWrite(int count) async {
91 | _logger.fine('Benchmarking write($count)');
92 |
93 | final results = _createResults();
94 | var intEntries = generateIntEntries(count);
95 | var stringEntries = generateStringEntries(count);
96 |
97 | for (var result in results) {
98 | _logger.info('Running ${result.runner.name}...');
99 | await result.runner.setUp();
100 | result.intTime = await result.runner.batchWriteInt(intEntries);
101 | result.stringTime = await result.runner.batchWriteString(stringEntries);
102 |
103 | await result.runner.tearDown();
104 | }
105 |
106 | return results;
107 | }
108 |
109 | Future> benchmarkDelete(int count) async {
110 | _logger.fine('Benchmarking delete($count)');
111 |
112 | final results = _createResults();
113 |
114 | var intEntries = generateIntEntries(count);
115 | var intKeys = intEntries.keys.toList()..shuffle();
116 | for (var result in results) {
117 | _logger.info('Running ${result.runner.name}...');
118 | await result.runner.setUp();
119 | await result.runner.batchWriteInt(intEntries);
120 | result.intTime = await result.runner.batchDeleteInt(intKeys);
121 | }
122 |
123 | var stringEntries = generateStringEntries(count);
124 | var stringKeys = stringEntries.keys.toList()..shuffle();
125 | for (var result in results) {
126 | _logger.info('Running ${result.runner.name}...');
127 | await result.runner.batchWriteString(stringEntries);
128 | result.stringTime = await result.runner.batchDeleteString(stringKeys);
129 | }
130 |
131 | for (var result in results) {
132 | await result.runner.tearDown();
133 | }
134 |
135 | return results;
136 | }
137 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | characters:
5 | dependency: transitive
6 | description:
7 | name: characters
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "1.2.0"
11 | collection:
12 | dependency: transitive
13 | description:
14 | name: collection
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.15.0"
18 | crypto:
19 | dependency: transitive
20 | description:
21 | name: crypto
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "3.0.2"
25 | equatable:
26 | dependency: transitive
27 | description:
28 | name: equatable
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "2.0.5"
32 | ffi:
33 | dependency: transitive
34 | description:
35 | name: ffi
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.2.1"
39 | file:
40 | dependency: transitive
41 | description:
42 | name: file
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "6.1.4"
46 | fl_chart:
47 | dependency: "direct main"
48 | description:
49 | name: fl_chart
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "0.36.4"
53 | flutter:
54 | dependency: "direct main"
55 | description: flutter
56 | source: sdk
57 | version: "0.0.0"
58 | flutter_web_plugins:
59 | dependency: transitive
60 | description: flutter
61 | source: sdk
62 | version: "0.0.0"
63 | hive:
64 | dependency: "direct main"
65 | description:
66 | name: hive
67 | url: "https://pub.dartlang.org"
68 | source: hosted
69 | version: "2.2.3"
70 | js:
71 | dependency: transitive
72 | description:
73 | name: js
74 | url: "https://pub.dartlang.org"
75 | source: hosted
76 | version: "0.6.3"
77 | logging:
78 | dependency: "direct main"
79 | description:
80 | name: logging
81 | url: "https://pub.dartlang.org"
82 | source: hosted
83 | version: "1.0.2"
84 | material_color_utilities:
85 | dependency: transitive
86 | description:
87 | name: material_color_utilities
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "0.1.3"
91 | meta:
92 | dependency: transitive
93 | description:
94 | name: meta
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "1.7.0"
98 | path:
99 | dependency: "direct main"
100 | description:
101 | name: path
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "1.8.2"
105 | path_provider:
106 | dependency: "direct main"
107 | description:
108 | name: path_provider
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "2.0.11"
112 | path_provider_android:
113 | dependency: transitive
114 | description:
115 | name: path_provider_android
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "2.0.20"
119 | path_provider_ios:
120 | dependency: transitive
121 | description:
122 | name: path_provider_ios
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "2.0.11"
126 | path_provider_linux:
127 | dependency: transitive
128 | description:
129 | name: path_provider_linux
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "2.1.7"
133 | path_provider_macos:
134 | dependency: transitive
135 | description:
136 | name: path_provider_macos
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "2.0.6"
140 | path_provider_platform_interface:
141 | dependency: transitive
142 | description:
143 | name: path_provider_platform_interface
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "2.0.5"
147 | path_provider_windows:
148 | dependency: transitive
149 | description:
150 | name: path_provider_windows
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "2.0.7"
154 | pedantic:
155 | dependency: transitive
156 | description:
157 | name: pedantic
158 | url: "https://pub.dartlang.org"
159 | source: hosted
160 | version: "1.11.1"
161 | platform:
162 | dependency: transitive
163 | description:
164 | name: platform
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "3.1.0"
168 | plugin_platform_interface:
169 | dependency: transitive
170 | description:
171 | name: plugin_platform_interface
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "2.1.3"
175 | process:
176 | dependency: transitive
177 | description:
178 | name: process
179 | url: "https://pub.dartlang.org"
180 | source: hosted
181 | version: "4.2.4"
182 | random_string:
183 | dependency: "direct main"
184 | description:
185 | name: random_string
186 | url: "https://pub.dartlang.org"
187 | source: hosted
188 | version: "2.3.1"
189 | sembast:
190 | dependency: "direct main"
191 | description:
192 | name: sembast
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "3.3.0"
196 | shared_preferences:
197 | dependency: "direct main"
198 | description:
199 | name: shared_preferences
200 | url: "https://pub.dartlang.org"
201 | source: hosted
202 | version: "2.0.15"
203 | shared_preferences_android:
204 | dependency: transitive
205 | description:
206 | name: shared_preferences_android
207 | url: "https://pub.dartlang.org"
208 | source: hosted
209 | version: "2.0.13"
210 | shared_preferences_ios:
211 | dependency: transitive
212 | description:
213 | name: shared_preferences_ios
214 | url: "https://pub.dartlang.org"
215 | source: hosted
216 | version: "2.1.1"
217 | shared_preferences_linux:
218 | dependency: transitive
219 | description:
220 | name: shared_preferences_linux
221 | url: "https://pub.dartlang.org"
222 | source: hosted
223 | version: "2.1.1"
224 | shared_preferences_macos:
225 | dependency: transitive
226 | description:
227 | name: shared_preferences_macos
228 | url: "https://pub.dartlang.org"
229 | source: hosted
230 | version: "2.0.4"
231 | shared_preferences_platform_interface:
232 | dependency: transitive
233 | description:
234 | name: shared_preferences_platform_interface
235 | url: "https://pub.dartlang.org"
236 | source: hosted
237 | version: "2.1.0"
238 | shared_preferences_web:
239 | dependency: transitive
240 | description:
241 | name: shared_preferences_web
242 | url: "https://pub.dartlang.org"
243 | source: hosted
244 | version: "2.0.4"
245 | shared_preferences_windows:
246 | dependency: transitive
247 | description:
248 | name: shared_preferences_windows
249 | url: "https://pub.dartlang.org"
250 | source: hosted
251 | version: "2.1.1"
252 | sky_engine:
253 | dependency: transitive
254 | description: flutter
255 | source: sdk
256 | version: "0.0.99"
257 | sqflite:
258 | dependency: "direct main"
259 | description:
260 | name: sqflite
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "2.0.2+1"
264 | sqflite_common:
265 | dependency: transitive
266 | description:
267 | name: sqflite_common
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "2.3.0"
271 | sqlite3:
272 | dependency: "direct main"
273 | description:
274 | name: sqlite3
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.5.1"
278 | sqlite3_flutter_libs:
279 | dependency: "direct main"
280 | description:
281 | name: sqlite3_flutter_libs
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "0.5.10"
285 | synchronized:
286 | dependency: transitive
287 | description:
288 | name: synchronized
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "3.0.0+3"
292 | typed_data:
293 | dependency: transitive
294 | description:
295 | name: typed_data
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "1.3.0"
299 | vector_math:
300 | dependency: transitive
301 | description:
302 | name: vector_math
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "2.1.1"
306 | win32:
307 | dependency: transitive
308 | description:
309 | name: win32
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "2.5.2"
313 | xdg_directories:
314 | dependency: transitive
315 | description:
316 | name: xdg_directories
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "0.2.0+2"
320 | sdks:
321 | dart: ">=2.16.0 <3.0.0"
322 | flutter: ">=2.10.0"
323 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math';
2 |
3 | import 'package:fl_chart/fl_chart.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:hive_benchmark/benchmark.dart';
6 | import 'package:logging/logging.dart';
7 |
8 | void main() {
9 | Logger.root.level = Level.ALL; // defaults to Level.INFO
10 | Logger.root.onRecord.listen((record) {
11 | print('${record.level.name}: ${record.time}: ${record.message}');
12 | });
13 |
14 | runApp(App());
15 | }
16 |
17 | class App extends StatefulWidget {
18 | @override
19 | _AppState createState() => _AppState();
20 | }
21 |
22 | class _AppState extends State with SingleTickerProviderStateMixin {
23 | late TabController controller;
24 |
25 | @override
26 | void initState() {
27 | super.initState();
28 |
29 | controller = TabController(length: 3, vsync: this);
30 | }
31 |
32 | @override
33 | Widget build(BuildContext context) {
34 | return MaterialApp(
35 | home: Scaffold(
36 | body: SafeArea(
37 | child: Padding(
38 | padding: const EdgeInsets.all(15.0),
39 | child: Column(
40 | children: [
41 | Center(
42 | child: Text(
43 | "Hive Benchmark",
44 | style: TextStyle(fontSize: 40),
45 | ),
46 | ),
47 | SizedBox(height: 15),
48 | TabBar(
49 | tabs: [
50 | Tab(text: "read"),
51 | Tab(text: "write"),
52 | Tab(text: "delete"),
53 | ],
54 | labelColor: const Color(0xff7589a2),
55 | controller: controller,
56 | onTap: (index) {
57 | setState(() {});
58 | },
59 | ),
60 | SizedBox(height: 25),
61 | Expanded(
62 | child:
63 | BenchmarkWidget(BenchmarkType.values[controller.index]),
64 | ),
65 | ],
66 | ),
67 | ),
68 | ),
69 | ),
70 | );
71 | }
72 | }
73 |
74 | enum BenchmarkType { read, write, delete }
75 |
76 | class BenchmarkWidget extends StatefulWidget {
77 | final BenchmarkType type;
78 |
79 | BenchmarkWidget(this.type);
80 |
81 | @override
82 | _BenchmarkWidgetState createState() => _BenchmarkWidgetState();
83 | }
84 |
85 | class _BenchmarkWidgetState extends State {
86 | static const entrySteps = [10, 20, 50, 100, 200, 500, 1000];
87 |
88 | var entryValue = 0.0;
89 | int get entries => entrySteps[entryValue.round()];
90 |
91 | var benchmarkRunning = false;
92 | List? benchmarkResults;
93 |
94 | @override
95 | void didChangeDependencies() {
96 | benchmarkResults = null;
97 | benchmarkRunning = false;
98 | super.didChangeDependencies();
99 | }
100 |
101 | @override
102 | Widget build(BuildContext context) {
103 | return Column(
104 | crossAxisAlignment: CrossAxisAlignment.stretch,
105 | children: [
106 | if (benchmarkResults == null)
107 | Expanded(
108 | child: Center(
109 | child: Text('Run benchmark to show data'),
110 | ),
111 | )
112 | else
113 | Expanded(
114 | child: Center(
115 | child: BenchmarkResult(benchmarkResults!),
116 | ),
117 | ),
118 | SizedBox(height: 20),
119 | Row(
120 | children: [
121 | Expanded(
122 | child: Slider(
123 | value: entryValue,
124 | min: 0,
125 | max: (entrySteps.length - 1).toDouble(),
126 | divisions: entrySteps.length - 2,
127 | onChanged: (newValue) {
128 | setState(() {
129 | entryValue = newValue;
130 | });
131 | },
132 | ),
133 | ),
134 | SizedBox(
135 | width: 80,
136 | child: Text(entries.toString() + " Entries"),
137 | ),
138 | ],
139 | ),
140 | if (benchmarkRunning)
141 | const Center(
142 | child: SizedBox(
143 | width: 28,
144 | height: 28,
145 | child: CircularProgressIndicator(strokeWidth: 3),
146 | ),
147 | )
148 | else
149 | Center(
150 | child: ElevatedButton(
151 | onPressed: _performBenchmark,
152 | child: Text("Benchmark"),
153 | ),
154 | ),
155 | SizedBox(height: 20),
156 | ],
157 | );
158 | }
159 |
160 | _performBenchmark() async {
161 | var entries = this.entries;
162 | setState(() {
163 | benchmarkRunning = true;
164 | });
165 |
166 | List results;
167 | switch (widget.type) {
168 | case BenchmarkType.read:
169 | results = await benchmarkRead(entries);
170 | break;
171 | case BenchmarkType.write:
172 | results = await benchmarkWrite(entries);
173 | break;
174 | case BenchmarkType.delete:
175 | results = await benchmarkDelete(entries);
176 | break;
177 | }
178 |
179 | setState(() {
180 | benchmarkRunning = false;
181 | benchmarkResults = results;
182 | });
183 | }
184 | }
185 |
186 | class BenchmarkResult extends StatelessWidget {
187 | final Color leftBarColor = Color(0xff53fdd7);
188 | final Color rightBarColor = Color(0xffff5182);
189 | final double width = 12;
190 |
191 | final List results;
192 |
193 | BenchmarkResult(this.results);
194 |
195 | List get labels {
196 | return results.map((r) => r.runner.name).toList();
197 | }
198 |
199 | int get maxResultTime {
200 | var max = 0;
201 | for (var result in results) {
202 | if (result.intTime > max) {
203 | max = result.intTime;
204 | }
205 | if (result.stringTime > max) {
206 | max = result.stringTime;
207 | }
208 | }
209 | return max;
210 | }
211 |
212 | List get barGroups {
213 | var x = 0;
214 | return [
215 | for (final result in results)
216 | BarChartGroupData(
217 | barsSpace: 4,
218 | x: x++,
219 | barRods: [
220 | BarChartRodData(
221 | y: max(result.intTime.toDouble(), 1),
222 | colors: [leftBarColor],
223 | width: width,
224 | borderRadius: BorderRadius.circular(6),
225 | ),
226 | BarChartRodData(
227 | y: max(result.stringTime.toDouble(), 1),
228 | colors: [rightBarColor],
229 | width: width,
230 | borderRadius: BorderRadius.circular(6),
231 | ),
232 | ],
233 | ),
234 | ];
235 | }
236 |
237 | @override
238 | Widget build(BuildContext context) {
239 | return Column(
240 | crossAxisAlignment: CrossAxisAlignment.stretch,
241 | children: [
242 | SizedBox(height: 10),
243 | Center(
244 | child: Row(
245 | mainAxisSize: MainAxisSize.min,
246 | children: [
247 | SizedBox(
248 | width: 15,
249 | height: 15,
250 | child: Container(
251 | color: leftBarColor,
252 | ),
253 | ),
254 | SizedBox(width: 5),
255 | Text(
256 | 'Integers',
257 | style: TextStyle(
258 | color: const Color(0xff7589a2),
259 | fontWeight: FontWeight.bold,
260 | fontSize: 14,
261 | ),
262 | ),
263 | SizedBox(width: 10),
264 | SizedBox(
265 | width: 15,
266 | height: 15,
267 | child: Container(
268 | color: rightBarColor,
269 | ),
270 | ),
271 | SizedBox(width: 5),
272 | Text(
273 | 'Strings',
274 | style: TextStyle(
275 | color: const Color(0xff7589a2),
276 | fontWeight: FontWeight.bold,
277 | fontSize: 14,
278 | ),
279 | ),
280 | ],
281 | ),
282 | ),
283 | SizedBox(height: 20),
284 | Expanded(
285 | child: _buildChart(),
286 | ),
287 | ],
288 | );
289 | }
290 |
291 | _buildChart() {
292 | var maxTime = maxResultTime;
293 | return Container(
294 | child: BarChart(
295 | BarChartData(
296 | maxY: maxTime.toDouble(),
297 | alignment: BarChartAlignment.spaceAround,
298 | titlesData: FlTitlesData(
299 | show: true,
300 | bottomTitles: SideTitles(
301 | showTitles: true,
302 | getTextStyles: ( _, __) => TextStyle(
303 | color: const Color(0xff7589a2),
304 | fontWeight: FontWeight.bold,
305 | fontSize: 14,
306 | ),
307 | margin: 20,
308 | getTitles: (double value) {
309 | return labels[value.toInt()];
310 | },
311 | ),
312 | leftTitles: SideTitles(
313 | showTitles: true,
314 | getTextStyles: (_,__) => TextStyle(
315 | color: const Color(0xff7589a2),
316 | fontWeight: FontWeight.bold,
317 | fontSize: 14,
318 | ),
319 | margin: 32,
320 | reservedSize: 50,
321 | getTitles: (value) {
322 | if (value % (maxResultTime ~/ 4) == 0) {
323 | return value.toInt().toString() + 'ms';
324 | }
325 | return '';
326 | },
327 | ),
328 | ),
329 | borderData: FlBorderData(
330 | show: false,
331 | ),
332 | barGroups: barGroups,
333 | ),
334 | ),
335 | );
336 | }
337 | }
338 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveBenchmark;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveBenchmark;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveBenchmark;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------
/macos/Runner/Base.lproj/MainMenu.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 51;
7 | objects = {
8 |
9 | /* Begin PBXAggregateTarget section */
10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
11 | isa = PBXAggregateTarget;
12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
13 | buildPhases = (
14 | 33CC111E2044C6BF0003C045 /* ShellScript */,
15 | );
16 | dependencies = (
17 | );
18 | name = "Flutter Assemble";
19 | productName = FLX;
20 | };
21 | /* End PBXAggregateTarget section */
22 |
23 | /* Begin PBXBuildFile section */
24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29 | DB09884961F60B5B37B1F5CB /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 879AF7BD0AFB8D447C0EDB53 /* Pods_Runner.framework */; };
30 | /* End PBXBuildFile section */
31 |
32 | /* Begin PBXContainerItemProxy section */
33 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
34 | isa = PBXContainerItemProxy;
35 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
36 | proxyType = 1;
37 | remoteGlobalIDString = 33CC111A2044C6BA0003C045;
38 | remoteInfo = FLX;
39 | };
40 | /* End PBXContainerItemProxy section */
41 |
42 | /* Begin PBXCopyFilesBuildPhase section */
43 | 33CC110E2044A8840003C045 /* Bundle Framework */ = {
44 | isa = PBXCopyFilesBuildPhase;
45 | buildActionMask = 2147483647;
46 | dstPath = "";
47 | dstSubfolderSpec = 10;
48 | files = (
49 | );
50 | name = "Bundle Framework";
51 | runOnlyForDeploymentPostprocessing = 0;
52 | };
53 | /* End PBXCopyFilesBuildPhase section */
54 |
55 | /* Begin PBXFileReference section */
56 | 30F3CD2A49C9CADF99F319FD /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
57 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
58 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
59 | 33CC10ED2044A3C60003C045 /* hive_benchmark.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = hive_benchmark.app; sourceTree = BUILT_PRODUCTS_DIR; };
60 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
61 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
62 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
63 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
64 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
65 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
66 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
67 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
68 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
69 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
70 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
71 | 3C405DAAE25C46147B4C450A /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
72 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
73 | 879AF7BD0AFB8D447C0EDB53 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
75 | EA003663E81128D4018688B5 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
76 | /* End PBXFileReference section */
77 |
78 | /* Begin PBXFrameworksBuildPhase section */
79 | 33CC10EA2044A3C60003C045 /* Frameworks */ = {
80 | isa = PBXFrameworksBuildPhase;
81 | buildActionMask = 2147483647;
82 | files = (
83 | DB09884961F60B5B37B1F5CB /* Pods_Runner.framework in Frameworks */,
84 | );
85 | runOnlyForDeploymentPostprocessing = 0;
86 | };
87 | /* End PBXFrameworksBuildPhase section */
88 |
89 | /* Begin PBXGroup section */
90 | 33BA886A226E78AF003329D5 /* Configs */ = {
91 | isa = PBXGroup;
92 | children = (
93 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
94 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
95 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
96 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
97 | );
98 | path = Configs;
99 | sourceTree = "";
100 | };
101 | 33CC10E42044A3C60003C045 = {
102 | isa = PBXGroup;
103 | children = (
104 | 33FAB671232836740065AC1E /* Runner */,
105 | 33CEB47122A05771004F2AC0 /* Flutter */,
106 | 33CC10EE2044A3C60003C045 /* Products */,
107 | D73912EC22F37F3D000D13A0 /* Frameworks */,
108 | 71FBAFDF559A387F739EAFAC /* Pods */,
109 | );
110 | sourceTree = "";
111 | };
112 | 33CC10EE2044A3C60003C045 /* Products */ = {
113 | isa = PBXGroup;
114 | children = (
115 | 33CC10ED2044A3C60003C045 /* hive_benchmark.app */,
116 | );
117 | name = Products;
118 | sourceTree = "";
119 | };
120 | 33CC11242044D66E0003C045 /* Resources */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 33CC10F22044A3C60003C045 /* Assets.xcassets */,
124 | 33CC10F42044A3C60003C045 /* MainMenu.xib */,
125 | 33CC10F72044A3C60003C045 /* Info.plist */,
126 | );
127 | name = Resources;
128 | path = ..;
129 | sourceTree = "";
130 | };
131 | 33CEB47122A05771004F2AC0 /* Flutter */ = {
132 | isa = PBXGroup;
133 | children = (
134 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
135 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
136 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
137 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
138 | );
139 | path = Flutter;
140 | sourceTree = "";
141 | };
142 | 33FAB671232836740065AC1E /* Runner */ = {
143 | isa = PBXGroup;
144 | children = (
145 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
146 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
147 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
148 | 33E51914231749380026EE4D /* Release.entitlements */,
149 | 33CC11242044D66E0003C045 /* Resources */,
150 | 33BA886A226E78AF003329D5 /* Configs */,
151 | );
152 | path = Runner;
153 | sourceTree = "";
154 | };
155 | 71FBAFDF559A387F739EAFAC /* Pods */ = {
156 | isa = PBXGroup;
157 | children = (
158 | 3C405DAAE25C46147B4C450A /* Pods-Runner.debug.xcconfig */,
159 | 30F3CD2A49C9CADF99F319FD /* Pods-Runner.release.xcconfig */,
160 | EA003663E81128D4018688B5 /* Pods-Runner.profile.xcconfig */,
161 | );
162 | name = Pods;
163 | path = Pods;
164 | sourceTree = "";
165 | };
166 | D73912EC22F37F3D000D13A0 /* Frameworks */ = {
167 | isa = PBXGroup;
168 | children = (
169 | 879AF7BD0AFB8D447C0EDB53 /* Pods_Runner.framework */,
170 | );
171 | name = Frameworks;
172 | sourceTree = "";
173 | };
174 | /* End PBXGroup section */
175 |
176 | /* Begin PBXNativeTarget section */
177 | 33CC10EC2044A3C60003C045 /* Runner */ = {
178 | isa = PBXNativeTarget;
179 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
180 | buildPhases = (
181 | 055603EC618D4C794994047D /* [CP] Check Pods Manifest.lock */,
182 | 33CC10E92044A3C60003C045 /* Sources */,
183 | 33CC10EA2044A3C60003C045 /* Frameworks */,
184 | 33CC10EB2044A3C60003C045 /* Resources */,
185 | 33CC110E2044A8840003C045 /* Bundle Framework */,
186 | 3399D490228B24CF009A79C7 /* ShellScript */,
187 | 05EE2A51FE8AF92FDA6E20E2 /* [CP] Embed Pods Frameworks */,
188 | );
189 | buildRules = (
190 | );
191 | dependencies = (
192 | 33CC11202044C79F0003C045 /* PBXTargetDependency */,
193 | );
194 | name = Runner;
195 | productName = Runner;
196 | productReference = 33CC10ED2044A3C60003C045 /* hive_benchmark.app */;
197 | productType = "com.apple.product-type.application";
198 | };
199 | /* End PBXNativeTarget section */
200 |
201 | /* Begin PBXProject section */
202 | 33CC10E52044A3C60003C045 /* Project object */ = {
203 | isa = PBXProject;
204 | attributes = {
205 | LastSwiftUpdateCheck = 0920;
206 | LastUpgradeCheck = 0930;
207 | ORGANIZATIONNAME = "";
208 | TargetAttributes = {
209 | 33CC10EC2044A3C60003C045 = {
210 | CreatedOnToolsVersion = 9.2;
211 | LastSwiftMigration = 1100;
212 | ProvisioningStyle = Automatic;
213 | SystemCapabilities = {
214 | com.apple.Sandbox = {
215 | enabled = 1;
216 | };
217 | };
218 | };
219 | 33CC111A2044C6BA0003C045 = {
220 | CreatedOnToolsVersion = 9.2;
221 | ProvisioningStyle = Manual;
222 | };
223 | };
224 | };
225 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
226 | compatibilityVersion = "Xcode 9.3";
227 | developmentRegion = en;
228 | hasScannedForEncodings = 0;
229 | knownRegions = (
230 | en,
231 | Base,
232 | );
233 | mainGroup = 33CC10E42044A3C60003C045;
234 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
235 | projectDirPath = "";
236 | projectRoot = "";
237 | targets = (
238 | 33CC10EC2044A3C60003C045 /* Runner */,
239 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
240 | );
241 | };
242 | /* End PBXProject section */
243 |
244 | /* Begin PBXResourcesBuildPhase section */
245 | 33CC10EB2044A3C60003C045 /* Resources */ = {
246 | isa = PBXResourcesBuildPhase;
247 | buildActionMask = 2147483647;
248 | files = (
249 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
250 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
251 | );
252 | runOnlyForDeploymentPostprocessing = 0;
253 | };
254 | /* End PBXResourcesBuildPhase section */
255 |
256 | /* Begin PBXShellScriptBuildPhase section */
257 | 055603EC618D4C794994047D /* [CP] Check Pods Manifest.lock */ = {
258 | isa = PBXShellScriptBuildPhase;
259 | buildActionMask = 2147483647;
260 | files = (
261 | );
262 | inputFileListPaths = (
263 | );
264 | inputPaths = (
265 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
266 | "${PODS_ROOT}/Manifest.lock",
267 | );
268 | name = "[CP] Check Pods Manifest.lock";
269 | outputFileListPaths = (
270 | );
271 | outputPaths = (
272 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
273 | );
274 | runOnlyForDeploymentPostprocessing = 0;
275 | shellPath = /bin/sh;
276 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
277 | showEnvVarsInLog = 0;
278 | };
279 | 05EE2A51FE8AF92FDA6E20E2 /* [CP] Embed Pods Frameworks */ = {
280 | isa = PBXShellScriptBuildPhase;
281 | buildActionMask = 2147483647;
282 | files = (
283 | );
284 | inputFileListPaths = (
285 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
286 | );
287 | name = "[CP] Embed Pods Frameworks";
288 | outputFileListPaths = (
289 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
290 | );
291 | runOnlyForDeploymentPostprocessing = 0;
292 | shellPath = /bin/sh;
293 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
294 | showEnvVarsInLog = 0;
295 | };
296 | 3399D490228B24CF009A79C7 /* ShellScript */ = {
297 | isa = PBXShellScriptBuildPhase;
298 | buildActionMask = 2147483647;
299 | files = (
300 | );
301 | inputFileListPaths = (
302 | );
303 | inputPaths = (
304 | );
305 | outputFileListPaths = (
306 | );
307 | outputPaths = (
308 | );
309 | runOnlyForDeploymentPostprocessing = 0;
310 | shellPath = /bin/sh;
311 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
312 | };
313 | 33CC111E2044C6BF0003C045 /* ShellScript */ = {
314 | isa = PBXShellScriptBuildPhase;
315 | buildActionMask = 2147483647;
316 | files = (
317 | );
318 | inputFileListPaths = (
319 | Flutter/ephemeral/FlutterInputs.xcfilelist,
320 | );
321 | inputPaths = (
322 | Flutter/ephemeral/tripwire,
323 | );
324 | outputFileListPaths = (
325 | Flutter/ephemeral/FlutterOutputs.xcfilelist,
326 | );
327 | outputPaths = (
328 | );
329 | runOnlyForDeploymentPostprocessing = 0;
330 | shellPath = /bin/sh;
331 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
332 | };
333 | /* End PBXShellScriptBuildPhase section */
334 |
335 | /* Begin PBXSourcesBuildPhase section */
336 | 33CC10E92044A3C60003C045 /* Sources */ = {
337 | isa = PBXSourcesBuildPhase;
338 | buildActionMask = 2147483647;
339 | files = (
340 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
341 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
342 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
343 | );
344 | runOnlyForDeploymentPostprocessing = 0;
345 | };
346 | /* End PBXSourcesBuildPhase section */
347 |
348 | /* Begin PBXTargetDependency section */
349 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
350 | isa = PBXTargetDependency;
351 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
352 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
353 | };
354 | /* End PBXTargetDependency section */
355 |
356 | /* Begin PBXVariantGroup section */
357 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
358 | isa = PBXVariantGroup;
359 | children = (
360 | 33CC10F52044A3C60003C045 /* Base */,
361 | );
362 | name = MainMenu.xib;
363 | path = Runner;
364 | sourceTree = "";
365 | };
366 | /* End PBXVariantGroup section */
367 |
368 | /* Begin XCBuildConfiguration section */
369 | 338D0CE9231458BD00FA5F75 /* Profile */ = {
370 | isa = XCBuildConfiguration;
371 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
372 | buildSettings = {
373 | ALWAYS_SEARCH_USER_PATHS = NO;
374 | CLANG_ANALYZER_NONNULL = YES;
375 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
376 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
377 | CLANG_CXX_LIBRARY = "libc++";
378 | CLANG_ENABLE_MODULES = YES;
379 | CLANG_ENABLE_OBJC_ARC = YES;
380 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
381 | CLANG_WARN_BOOL_CONVERSION = YES;
382 | CLANG_WARN_CONSTANT_CONVERSION = YES;
383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
385 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
386 | CLANG_WARN_EMPTY_BODY = YES;
387 | CLANG_WARN_ENUM_CONVERSION = YES;
388 | CLANG_WARN_INFINITE_RECURSION = YES;
389 | CLANG_WARN_INT_CONVERSION = YES;
390 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
394 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
395 | CODE_SIGN_IDENTITY = "-";
396 | COPY_PHASE_STRIP = NO;
397 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
398 | ENABLE_NS_ASSERTIONS = NO;
399 | ENABLE_STRICT_OBJC_MSGSEND = YES;
400 | GCC_C_LANGUAGE_STANDARD = gnu11;
401 | GCC_NO_COMMON_BLOCKS = YES;
402 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
403 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
404 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
405 | GCC_WARN_UNUSED_FUNCTION = YES;
406 | GCC_WARN_UNUSED_VARIABLE = YES;
407 | MACOSX_DEPLOYMENT_TARGET = 10.11;
408 | MTL_ENABLE_DEBUG_INFO = NO;
409 | SDKROOT = macosx;
410 | SWIFT_COMPILATION_MODE = wholemodule;
411 | SWIFT_OPTIMIZATION_LEVEL = "-O";
412 | };
413 | name = Profile;
414 | };
415 | 338D0CEA231458BD00FA5F75 /* Profile */ = {
416 | isa = XCBuildConfiguration;
417 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
418 | buildSettings = {
419 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
420 | CLANG_ENABLE_MODULES = YES;
421 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
422 | CODE_SIGN_STYLE = Automatic;
423 | COMBINE_HIDPI_IMAGES = YES;
424 | INFOPLIST_FILE = Runner/Info.plist;
425 | LD_RUNPATH_SEARCH_PATHS = (
426 | "$(inherited)",
427 | "@executable_path/../Frameworks",
428 | );
429 | PROVISIONING_PROFILE_SPECIFIER = "";
430 | SWIFT_VERSION = 5.0;
431 | };
432 | name = Profile;
433 | };
434 | 338D0CEB231458BD00FA5F75 /* Profile */ = {
435 | isa = XCBuildConfiguration;
436 | buildSettings = {
437 | CODE_SIGN_STYLE = Manual;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | };
440 | name = Profile;
441 | };
442 | 33CC10F92044A3C60003C045 /* Debug */ = {
443 | isa = XCBuildConfiguration;
444 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
445 | buildSettings = {
446 | ALWAYS_SEARCH_USER_PATHS = NO;
447 | CLANG_ANALYZER_NONNULL = YES;
448 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
449 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
450 | CLANG_CXX_LIBRARY = "libc++";
451 | CLANG_ENABLE_MODULES = YES;
452 | CLANG_ENABLE_OBJC_ARC = YES;
453 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
454 | CLANG_WARN_BOOL_CONVERSION = YES;
455 | CLANG_WARN_CONSTANT_CONVERSION = YES;
456 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
458 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
459 | CLANG_WARN_EMPTY_BODY = YES;
460 | CLANG_WARN_ENUM_CONVERSION = YES;
461 | CLANG_WARN_INFINITE_RECURSION = YES;
462 | CLANG_WARN_INT_CONVERSION = YES;
463 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
464 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
465 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
466 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
467 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
468 | CODE_SIGN_IDENTITY = "-";
469 | COPY_PHASE_STRIP = NO;
470 | DEBUG_INFORMATION_FORMAT = dwarf;
471 | ENABLE_STRICT_OBJC_MSGSEND = YES;
472 | ENABLE_TESTABILITY = YES;
473 | GCC_C_LANGUAGE_STANDARD = gnu11;
474 | GCC_DYNAMIC_NO_PIC = NO;
475 | GCC_NO_COMMON_BLOCKS = YES;
476 | GCC_OPTIMIZATION_LEVEL = 0;
477 | GCC_PREPROCESSOR_DEFINITIONS = (
478 | "DEBUG=1",
479 | "$(inherited)",
480 | );
481 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
482 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
484 | GCC_WARN_UNUSED_FUNCTION = YES;
485 | GCC_WARN_UNUSED_VARIABLE = YES;
486 | MACOSX_DEPLOYMENT_TARGET = 10.11;
487 | MTL_ENABLE_DEBUG_INFO = YES;
488 | ONLY_ACTIVE_ARCH = YES;
489 | SDKROOT = macosx;
490 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
491 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
492 | };
493 | name = Debug;
494 | };
495 | 33CC10FA2044A3C60003C045 /* Release */ = {
496 | isa = XCBuildConfiguration;
497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
498 | buildSettings = {
499 | ALWAYS_SEARCH_USER_PATHS = NO;
500 | CLANG_ANALYZER_NONNULL = YES;
501 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
502 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
503 | CLANG_CXX_LIBRARY = "libc++";
504 | CLANG_ENABLE_MODULES = YES;
505 | CLANG_ENABLE_OBJC_ARC = YES;
506 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
507 | CLANG_WARN_BOOL_CONVERSION = YES;
508 | CLANG_WARN_CONSTANT_CONVERSION = YES;
509 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
510 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
511 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
512 | CLANG_WARN_EMPTY_BODY = YES;
513 | CLANG_WARN_ENUM_CONVERSION = YES;
514 | CLANG_WARN_INFINITE_RECURSION = YES;
515 | CLANG_WARN_INT_CONVERSION = YES;
516 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
517 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
518 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
519 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
520 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
521 | CODE_SIGN_IDENTITY = "-";
522 | COPY_PHASE_STRIP = NO;
523 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
524 | ENABLE_NS_ASSERTIONS = NO;
525 | ENABLE_STRICT_OBJC_MSGSEND = YES;
526 | GCC_C_LANGUAGE_STANDARD = gnu11;
527 | GCC_NO_COMMON_BLOCKS = YES;
528 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
529 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
530 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
531 | GCC_WARN_UNUSED_FUNCTION = YES;
532 | GCC_WARN_UNUSED_VARIABLE = YES;
533 | MACOSX_DEPLOYMENT_TARGET = 10.11;
534 | MTL_ENABLE_DEBUG_INFO = NO;
535 | SDKROOT = macosx;
536 | SWIFT_COMPILATION_MODE = wholemodule;
537 | SWIFT_OPTIMIZATION_LEVEL = "-O";
538 | };
539 | name = Release;
540 | };
541 | 33CC10FC2044A3C60003C045 /* Debug */ = {
542 | isa = XCBuildConfiguration;
543 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
544 | buildSettings = {
545 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
546 | CLANG_ENABLE_MODULES = YES;
547 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
548 | CODE_SIGN_STYLE = Automatic;
549 | COMBINE_HIDPI_IMAGES = YES;
550 | INFOPLIST_FILE = Runner/Info.plist;
551 | LD_RUNPATH_SEARCH_PATHS = (
552 | "$(inherited)",
553 | "@executable_path/../Frameworks",
554 | );
555 | PROVISIONING_PROFILE_SPECIFIER = "";
556 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
557 | SWIFT_VERSION = 5.0;
558 | };
559 | name = Debug;
560 | };
561 | 33CC10FD2044A3C60003C045 /* Release */ = {
562 | isa = XCBuildConfiguration;
563 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
564 | buildSettings = {
565 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
566 | CLANG_ENABLE_MODULES = YES;
567 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
568 | CODE_SIGN_STYLE = Automatic;
569 | COMBINE_HIDPI_IMAGES = YES;
570 | INFOPLIST_FILE = Runner/Info.plist;
571 | LD_RUNPATH_SEARCH_PATHS = (
572 | "$(inherited)",
573 | "@executable_path/../Frameworks",
574 | );
575 | PROVISIONING_PROFILE_SPECIFIER = "";
576 | SWIFT_VERSION = 5.0;
577 | };
578 | name = Release;
579 | };
580 | 33CC111C2044C6BA0003C045 /* Debug */ = {
581 | isa = XCBuildConfiguration;
582 | buildSettings = {
583 | CODE_SIGN_STYLE = Manual;
584 | PRODUCT_NAME = "$(TARGET_NAME)";
585 | };
586 | name = Debug;
587 | };
588 | 33CC111D2044C6BA0003C045 /* Release */ = {
589 | isa = XCBuildConfiguration;
590 | buildSettings = {
591 | CODE_SIGN_STYLE = Automatic;
592 | PRODUCT_NAME = "$(TARGET_NAME)";
593 | };
594 | name = Release;
595 | };
596 | /* End XCBuildConfiguration section */
597 |
598 | /* Begin XCConfigurationList section */
599 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
600 | isa = XCConfigurationList;
601 | buildConfigurations = (
602 | 33CC10F92044A3C60003C045 /* Debug */,
603 | 33CC10FA2044A3C60003C045 /* Release */,
604 | 338D0CE9231458BD00FA5F75 /* Profile */,
605 | );
606 | defaultConfigurationIsVisible = 0;
607 | defaultConfigurationName = Release;
608 | };
609 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
610 | isa = XCConfigurationList;
611 | buildConfigurations = (
612 | 33CC10FC2044A3C60003C045 /* Debug */,
613 | 33CC10FD2044A3C60003C045 /* Release */,
614 | 338D0CEA231458BD00FA5F75 /* Profile */,
615 | );
616 | defaultConfigurationIsVisible = 0;
617 | defaultConfigurationName = Release;
618 | };
619 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
620 | isa = XCConfigurationList;
621 | buildConfigurations = (
622 | 33CC111C2044C6BA0003C045 /* Debug */,
623 | 33CC111D2044C6BA0003C045 /* Release */,
624 | 338D0CEB231458BD00FA5F75 /* Profile */,
625 | );
626 | defaultConfigurationIsVisible = 0;
627 | defaultConfigurationName = Release;
628 | };
629 | /* End XCConfigurationList section */
630 | };
631 | rootObject = 33CC10E52044A3C60003C045 /* Project object */;
632 | }
633 |
--------------------------------------------------------------------------------