Skip to content

benchmarks: Read SessionConfig from Environment #15684

Open
@ctsk

Description

@ctsk

Is your feature request related to a problem or challenge?

I think it would be useful if the benchmarks would consider environment variables for the datafusion configuration. This would let developers easily modify any datafusion setting and compare the performance, ideally even without having to recompile the benchmarks.

Thoughts?

Describe the solution you'd like

I want to run this:

export DATAFUSION_EXECUTION_TARGET_PARTITIONS=1
export DATAFUSION_EXECUTION_COALESCE_BATCHES=false
./bench.sh run tpch

... and have the tpch benchmark use the provided settings.

Describe alternatives you've considered

N/A

Additional context

I saw datafusion-cli already picks up these variables, but the benchmarks seem to not do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions