Skip to content

Commit 34af59d

Browse files
committed
update comments
1 parent d410a36 commit 34af59d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

external/avro/src/test/scala/org/apache/spark/sql/execution/benchmark/AvroWriteBenchmark.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ package org.apache.spark.sql.execution.benchmark
2020
/**
2121
* Benchmark to measure Avro data sources write performance.
2222
* Usage:
23-
* spark-submit --class <this class> <spark sql test jar>
23+
* 1. with spark-submit: bin/spark-submit --class <this class> <spark sql test jar>
24+
* 2. with sbt: build/sbt "avro/test:runMain <this class>"
2425
*/
2526
object AvroWriteBenchmark extends DataSourceWriteBenchmark {
2627
def main(args: Array[String]): Unit = {

sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/BuiltInDataSourceWriteBenchmark.scala

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ package org.apache.spark.sql.execution.benchmark
1818

1919
/**
2020
* Benchmark to measure built-in data sources write performance.
21-
* By default it measures 4 data source format: Parquet, ORC, JSON, CSV:
22-
* spark-submit --class <this class> <spark sql test jar>
21+
* By default it measures 4 data source format: Parquet, ORC, JSON, CSV. Run it with spark-submit:
22+
* spark-submit --class <this class> <spark sql test jar>
23+
* Or with sbt:
24+
* build/sbt "sql/test:runMain <this class>"
25+
*
2326
* To measure specified formats, run it with arguments:
24-
* spark-submit --class <this class> <spark sql test jar> format1 [format2] [...]
27+
* spark-submit --class <this class> <spark sql test jar> format1 [format2] [...]
28+
* Or with sbt:
29+
* build/sbt "sql/test:runMain <this class> format1 [format2] [...]"
2530
*/
2631
object BuiltInDataSourceWriteBenchmark extends DataSourceWriteBenchmark {
2732
def main(args: Array[String]): Unit = {

0 commit comments

Comments
 (0)