Skip to content

Commit

Permalink
Add cancellation benchmark to benchmarks README
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Mar 6, 2025
1 parent cc71ec5 commit 9cb35f4
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,37 @@ Your benchmark should create and use an instance of `BenchmarkRun` defined in `b

# Benchmarks

The output of `dfbench` help includes a description of each benchmark, which is reproduced here for convenience
The output of `dfbench` help includes a description of each benchmark, which is reproduced here for convenience.

## Cancellation

Test performance of cancelling queries
Queries in DataFusion should stop executing "quickly" after they are
cancelled (the output stream is dropped).

The queries are executed on a synthetic dataset generated during
the benchmark execution that is an anonymized version of a
real-world data set.

The query is an anonymized version of a real-world query, and the
test starts the query then cancels it and reports how long it takes
for the runtime to fully exit.

Example output:

```
Using 7 files found on disk
Starting to load data into in-memory object store
Done loading data into in-memory object store
in main, sleeping
Starting spawned
Creating logical plan...
Creating physical plan...
Executing physical plan...
Getting results...
cancelling thread
done dropping runtime in 83.531417ms
```

## ClickBench

Expand Down

0 comments on commit 9cb35f4

Please sign in to comment.