File tree 2 files changed +19
-4
lines changed
2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 20
20
# Benchmarking nanoarrow
21
21
22
22
This subdirectory contains benchmarks and tools to run them. This is currently
23
- only implemented for the C library but may expand to include the R and Python
24
- bindings. The structure is as follows:
23
+ only implemented for the C library and Python bindings but may expand to include
24
+ the R bindings as well.
25
+
26
+ ## C Library
27
+
28
+ The structure of the C benchmarks is as follows:
25
29
26
30
- Benchmarks are documented inline using [ Doxygen] ( https://www.doxygen.nl/ ) .
27
31
- Configurations are CMake build presets, and CMake handles pulling a previous
28
32
or local nanoarrow using ` FetchContent ` . Benchmarks are run using ` ctest ` .
29
33
- There is a bare-bones report written as a [ Quarto] ( https://quarto.org )
30
- document that renders to markdown.
34
+ document that renders the C library results to markdown.
31
35
32
36
You can run benchmarks for a single configuration (e.g., ` local ` ) with:
33
37
@@ -50,3 +54,14 @@ python generate-fixtures.py # requires pyarrow
50
54
cd apidoc && doxygen && cd ..
51
55
quarto render benchmark-report.qmd
52
56
```
57
+
58
+ ## Python bindings
59
+
60
+ The Python benchmarks are a standard [ asv] ( https://asv.readthedocs.io ) project.
61
+ You can run the benchmarks with:
62
+
63
+ ``` shell
64
+ # pip install asv
65
+ python generate-fixtures.py # requires pyarrow
66
+ asv run
67
+ ```
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def time_build_c_array_int32(self):
36
36
37
37
def time_build_c_array_bool (self ):
38
38
"""Create a bool array from 1,000,000 Python booleans"""
39
- na .c_array (self .py_bools , na .bool ())
39
+ na .c_array (self .py_bools , na .bool_ ())
40
40
41
41
def time_build_c_array_struct_wide (self ):
42
42
"""Create a struct array with 10,000 columns"""
You can’t perform that action at this time.
0 commit comments