-
Notifications
You must be signed in to change notification settings - Fork 152
Add diesel to the rustc perf test suite #807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Mark-Simulacrum
merged 2 commits into
rust-lang:master
from
weiznich:add_diesel_to_rustc_bench
Mar 8, 2021
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.rs] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.toml] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# The database to use when testing against Postgres. | ||
PG_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/diesel_test | ||
# The database to use when running the Postgres examples during testing. | ||
PG_EXAMPLE_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/diesel_example | ||
|
||
# The database to use when testing against MySQL. | ||
MYSQL_DATABASE_URL=mysql://[email protected]:3306/diesel_test | ||
# The database to use when running the MySQL examples during testing. | ||
MYSQL_EXAMPLE_DATABASE_URL=mysql://[email protected]:3306/diesel_example | ||
# A database different from the others above used for certain unit tests. | ||
# TODO: this is magical, explain what it's there for. | ||
MYSQL_UNIT_TEST_DATABASE_URL=mysql://[email protected]:3306/diesel_unit_test | ||
|
||
# The database to use when testing against SQLite. | ||
SQLITE_DATABASE_URL=/tmp/diesel_test.sqlite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [sgrif, weiznich] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- | ||
If you want to report a bug, we added some points below you can fill out. If you want to request a feature, feel free to remove all the irrelevant text. In addition to this [issue tracker](https://github.com/diesel-rs/diesel/issues), you can also talk to Diesel maintainers and users on [Gitter](https://gitter.im/diesel-rs/diesel). | ||
--> | ||
|
||
## Setup | ||
|
||
### Versions | ||
|
||
- **Rust:** | ||
- **Diesel:** | ||
- **Database:** | ||
- **Operating System** | ||
|
||
### Feature Flags | ||
|
||
- **diesel:** | ||
|
||
## Problem Description | ||
|
||
|
||
### What are you trying to accomplish? | ||
|
||
|
||
### What is the expected output? | ||
|
||
|
||
### What is the actual output? | ||
|
||
|
||
### Are you seeing any additional errors? | ||
|
||
|
||
### Steps to reproduce | ||
|
||
<!-- | ||
Please include as much of your codebase as needed to reproduce the error. If the relevant files are large, please consider linking to a public repository or a [Gist](https://gist.github.com/). | ||
|
||
Please post as much of your database schema as necessary. If you are using `infer_schema!`, you can use `diesel print-schema` and post the relevant parts from that. | ||
--> | ||
|
||
## Checklist | ||
|
||
- [ ] I have already looked over the [issue tracker](https://github.com/diesel-rs/diesel/issues) for similar issues. | ||
- [ ] This issue can be reproduced on Rust's stable channel. (Your issue will be | ||
closed if this is not the case) | ||
|
||
<!-- | ||
Thank you for your submission! You're helping make Diesel more robust 🎉 | ||
|
||
We'll try to respond as quickly as possible. | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Security audit | ||
on: | ||
push: | ||
paths: | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
schedule: | ||
- cron: '0 0 */7 * *' | ||
jobs: | ||
security_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
|
||
name: Benchmarks | ||
|
||
jobs: | ||
benchmarks: | ||
if: github.event.label.name == 'run-benchmarks' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
backend: ["postgres", "sqlite", "mysql"] | ||
steps: | ||
- name: Checkout sources | ||
if: steps.bench.outputs.triggered == 'true' | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install postgres (Linux) | ||
if: matrix.backend == 'postgres' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libpq-dev postgresql | ||
echo "host all all 127.0.0.1/32 md5" > sudo tee -a /etc/postgresql/10/main/pg_hba.conf | ||
sudo service postgresql restart && sleep 3 | ||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';" | ||
sudo service postgresql restart && sleep 3 | ||
echo '::set-env name=PG_DATABASE_URL::postgres://postgres:postgres@localhost/' | ||
|
||
- name: Install sqlite (Linux) | ||
if: matrix.backend == 'sqlite' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libsqlite3-dev | ||
echo '::set-env name=SQLITE_DATABASE_URL::/tmp/test.db' | ||
|
||
|
||
- name: Install mysql (Linux) | ||
if: matrix.backend == 'mysql' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install mysql-server libmysqlclient-dev | ||
sudo /etc/init.d/mysql start | ||
mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'root'@'localhost';" -uroot -proot | ||
echo '::set-env name=MYSQL_DATABASE_URL::mysql://root:root@localhost/diesel_test' | ||
|
||
- name: Run benches | ||
uses: jasonwilliams/criterion-compare-action@move_to_actions | ||
with: | ||
cwd: "diesel_bench" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should say, "A type safe SQL query builder."