You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/12/15 08:52:27 UTC

[GitHub] [arrow-datafusion] mingmwang opened a new issue #1452: [Question] I'm doing some benchmark test(TPCH) on DataFusion, is there a way to run the benchmark in a single thread?

mingmwang opened a new issue #1452:
URL: https://github.com/apache/arrow-datafusion/issues/1452


   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for this feature, in addition to  the *what*)
   
   **Describe the solution you'd like**
   A clear and concise description of what you want to happen.
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features you've considered.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow-datafusion] alamb commented on issue #1452: [Question] I'm doing some benchmark test(TPCH) on DataFusion, is there a way to run the benchmark in a single thread?

Posted by GitBox <gi...@apache.org>.
alamb commented on issue #1452:
URL: https://github.com/apache/arrow-datafusion/issues/1452#issuecomment-995216123


   Hi @mingmwang  -- I think setting `partitions` to `1` is the closest we have at the moment
   
   So something like
   ```shell
   ./target/debug/tpch benchmark datafusion -n 1 ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow-datafusion] alamb commented on issue #1452: [Question] I'm doing some benchmark test(TPCH) on DataFusion, is there a way to run the benchmark in a single thread?

Posted by GitBox <gi...@apache.org>.
alamb commented on issue #1452:
URL: https://github.com/apache/arrow-datafusion/issues/1452#issuecomment-995217425


   If you want to ensure only a single thread is used, you can set the tokio runtime to use a single thread
   
   Something like modify https://github.com/apache/arrow-datafusion/blob/7996fa86720fd96628bc07b7ee3f226107b7f969/benchmarks/src/bin/tpch.rs#L187-L189
   
   And change 
   
   ```rust
   #[tokio::main]
   ```
   
   to 
   ```rust
   #[tokio::main(core_threads = 1, max_threads = 1)]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org