Skip to content
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

Minor: Output elapsed time for sql logic test #13718

Merged
merged 6 commits into from
Dec 10, 2024
Merged

Conversation

comphead
Copy link
Contributor

@comphead comphead commented Dec 10, 2024

Which issue does this PR close?

Closes #.
Found when was working on #13710

Rationale for this change

The test running time is different depending on OS so it would be useful to know the exact SLT execution time.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Dec 10, 2024
@comphead
Copy link
Contributor Author

comphead commented Dec 10, 2024

hm.... the record high for windows platform is

Executed "map.slt". Took 460.5636141s
Executed "struct.slt". Took 1316.049712s

which takes 100x less for other platforms

@comphead
Copy link
Contributor Author

Folks appreciate if I can have a quick review on it so it can unblock me to investigate Windows slowness further

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.

Looks good to me -- thank you @comphead

I ran this locally and it produced this output:

     Running bin/sqllogictests.rs (target/debug/deps/sqllogictests-52523e4652075e1b)
Executed "same_column_name_cross_join.slt". Took 49.828334ms
Executed "strings.slt". Took 53.409791ms
Executed "options.slt". Took 58.914208ms
Executed "wildcard.slt". Took 59.238708ms
Executed "agg_func_substitute.slt". Took 60.206666ms
Executed "references.slt". Took 79.878958ms
Executed "binary.slt". Took 80.564833ms
Executed "push_down_filter.slt". Took 32.206125ms
Executed "arrow_files.slt". Took 97.147667ms
Executed "binary_view.slt". Took 40.529792ms
Executed "projection.slt". Took 56.37425ms
Executed "misc.slt". Took 3.956583ms
Executed "csv_files.slt". Took 129.71475ms
Executed "create_external_table.slt". Took 103.675708ms
Executed "identifiers.slt". Took 46.293125ms
Executed "aggregates_topk.slt". Took 70.157875ms
Executed "math.slt". Took 191.994167ms
Executed "ddl.slt". Took 210.443791ms
Executed "coalesce.slt". Took 91.933458ms
Executed "repartition.slt". Took 44.428709ms
Executed "cse.slt". Took 92.402459ms
...

👍

@comphead
Copy link
Contributor Author

Thanks @alamb

@comphead comphead merged commit 62fc4db into apache:main Dec 10, 2024
25 checks passed
zhuliquan pushed a commit to zhuliquan/datafusion that referenced this pull request Dec 11, 2024
* Minor: Output elapsed time for sql logic test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants