Skip to content

Conversation

@tustvold
Copy link
Contributor

@tustvold tustvold commented Feb 15, 2022

Rationale for this change

This was requested on #1738 (comment)

What changes are included in this PR?

Adds some documentation on how to run the criterion benchmarks

Are there any user-facing changes?

No code changes

@github-actions github-actions bot added datafusion documentation Improvements or additions to documentation labels Feb 15, 2022
}

// Clean up temporary file if any
// Temporary file must outlive the benchmarks, it is deleted when dropped
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was review feedback from #1738 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry I needed the dopamine hit of clicking the green button -- I should have waited

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @tustvold

cargo bench --bench parquet_query_sql
```

These randomly generate a parquet file, and then benchmark queries sourced from [parquet_query_sql.sql](./datafusion/benches/parquet_query_sql.sql) against it. This can therefore be a quick way to add coverage of particular query and/or data paths.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

// Clean up temporary file if any
// Temporary file must outlive the benchmarks, it is deleted when dropped
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry I needed the dopamine hit of clicking the green button -- I should have waited

@alamb alamb merged commit e79472d into apache:master Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants