https://github.com/mongodb/mongo-swift-driver-performance
MongoDB driver benchmarks for Swift
https://github.com/mongodb/mongo-swift-driver-performance
Last synced: 3 months ago
JSON representation
MongoDB driver benchmarks for Swift
- Host: GitHub
- URL: https://github.com/mongodb/mongo-swift-driver-performance
- Owner: mongodb
- License: apache-2.0
- Created: 2018-11-28T17:24:31.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T12:47:28.000Z (about 2 years ago)
- Last Synced: 2025-01-29T09:43:36.571Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 1.8 MB
- Stars: 5
- Watchers: 27
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Driver performance tests for the MongoDB Swift Driver
This is a Swift implementation of the MongoDB standard driver performance [benchmark suite](https://github.com/mongodb/specifications/blob/master/source/benchmarking/benchmarking.rst).
The following executable targets are available:
* `BSON`: BSON benchmarks (requires Swift 5.1+)
* `IO`: I/O-performing benchmarks using the driver's synchronous and `EventLoopFuture`-based API (requires Swift 5.1+)
* `AsyncAwaitIO`: I/O-performing benchmarks using the driver's `async` API (requires Swift 5.5+)A target should be run in release mode for optimal results: `swift run -c release TargetName`
Please note that each benchmark test runs for anywhere from 1 to 5 minutes and therefore **the entire benchmark suite will take around 20-30 minutes to complete**.