Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliendelplanque/dbquerybenchmarker
A tool to benchmark SQL queries from Pharo.
https://github.com/juliendelplanque/dbquerybenchmarker
Last synced: 4 days ago
JSON representation
A tool to benchmark SQL queries from Pharo.
- Host: GitHub
- URL: https://github.com/juliendelplanque/dbquerybenchmarker
- Owner: juliendelplanque
- License: mit
- Created: 2018-03-14T09:39:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T10:06:11.000Z (almost 7 years ago)
- Last Synced: 2024-10-31T07:05:32.553Z (about 2 months ago)
- Language: Smalltalk
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DBQueryBenchmarker
A tool to benchmark SQL queries from Pharo.## Install
To install this project in your Pharo image, use the following script:
```
Metacello new
baseline: 'DBQueryBenchmarker';
repository: 'github://juliendelplanque/DBQueryBenchmarker/repository';
load
```## Usage
The following script shows an example of how to use this project:
```
connection := DBConnectionsManager current connectionNamed: 'MyDatabaseConnection'."Get the time a query took to be run on the database."
connection timeToRun: 'SELECT * FROM people;'."Run the same query 100 times and collect the time each step took to be run.
These results could be use for statistical analysis of the time a query takes
to be run."
connection benchmark: 'SELECT * FROM people;' forSteps: 100.
```