clflushopt commented on code in PR #67:
URL: https://github.com/apache/datafusion-site/pull/67#discussion_r2029904651


##########
content/blog/2025-04-10-fastest-tpch-generator.md:
##########
@@ -0,0 +1,614 @@
+---
+layout: post
+title: tpchgen-rs World’s fastest open source TPC-H data generator, written in 
Rust
+date: 2025-04-10
+author: Andrew Lamb, Achraf B, and Sean Smith
+categories: [performance]
+---
+
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
+
+<style>
+/* Table borders */
+table, th, td {
+  border: 1px solid black;
+  border-collapse: collapse;
+}
+th, td {
+  padding: 3px;
+}
+</style>
+
+3 members of the [Apache DataFusion] community used Rust and open source
+development to build [tpchgen-rs], a fully open TPC-H data generator over 10x
+faster than any other implementation  we know of.
+
+It is now possible to create the TPC-H SF=100 dataset in 72.23 seconds (1.4 
GB/s
+😎) on a Macbook Air M3 with 16GB of memory, compared to the classic `dbgen`
+which takes 30 minutes<sup>1</sup> (0.05GB/sec). On the same machine, it takes 
less than
+2 minutes to create all 3.6 GB of SF=100 in [Apache Parquet] format.

Review Comment:
   ```
   ~/G/P/tpchgen-rs (cl/feat/bump-crates-to-0.1.1)> duckdb
   v1.2.0 5f5512b827
   Enter ".help" for usage hints.
   Connected to a transient in-memory database.
   Use ".open FILENAME" to reopen on a persistent database.
   D INSTALL tpch;
   D LOAD tpch;
   D
   D .open test
   D .timer on
   D CALL dbgen(sf = 100);
   
   -- Export each table to Parquet format
   copy customer to 'customer.parquet' (FORMAT parquet);
   copy lineitem to 'lineitem.parquet' (FORMAT parquet);
   copy nation to 'supplier.parquet' (FORMAT parquet);
   copy orders to 'supplier.parquet' (FORMAT parquet);
   copy part to 'part.parquet' (FORMAT parquet);
   copy partsupp to 'partsupp.parquet' (FORMAT parquet);
   copy region to 'region.parquet' (FORMAT parquet);
   copy supplier to 'supplier.parquet' (FORMAT parquet);
   
   100%β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚ Success β”‚
     β”‚ boolean β”‚
    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
     β”‚ 0 rows  β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
   Run Time (s): real 687.659 user 1040.134996 sys 83.434645
   D
   D -- Export each table to Parquet format
   D copy customer to 'customer.parquet' (FORMAT parquet);
   100%β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
   Run Time (s): real 2.985 user 9.007536 sys 2.676405
   D copy lineitem to 'lineitem.parquet' (FORMAT parquet);
   100% β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
   Run Time (s): real 108.328 user 395.075322 sys 90.606267
   D copy nation to 'supplier.parquet' (FORMAT parquet);
   Run Time (s): real 0.010 user 0.002566 sys 0.001946
   D copy orders to 'supplier.parquet' (FORMAT parquet);
   100%β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
   Run Time (s): real 19.461 user 78.310336 sys 17.984476
   D copy part to 'part.parquet' (FORMAT parquet);
   100%β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
   Run Time (s): real 10.717 user 13.437501 sys 37.076887
   D copy partsupp to 'partsupp.parquet' (FORMAT parquet);
   100%β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
   Run Time (s): real 11.286 user 31.645645 sys 14.751533
   D copy region to 'region.parquet' (FORMAT parquet);
   Run Time (s): real 0.003 user 0.000454 sys 0.000350
   D copy supplier to 'supplier.parquet' (FORMAT parquet);
   Run Time (s): real 0.500 user 0.613920 sys 0.130899
   ```



-- 
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-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to