@@ -40,7 +40,7 @@ $(TYPEDFIELDS)
4040
4141See the documentation of [Chairmarks.jl](https://github.com/LilithHafner/Chairmarks.jl) for more details on the measurement fields.
4242"""
43- Base. @kwdef struct DifferentiationBenchmarkDataRow{T} <: AbstractRow
43+ Base. @kwdef struct DifferentiationBenchmarkDataRow{T}
4444 " backend used for benchmarking"
4545 backend:: AbstractADType
4646 " scenario used for benchmarking"
@@ -67,10 +67,6 @@ Base.@kwdef struct DifferentiationBenchmarkDataRow{T} <: AbstractRow
6767 compile_fraction:: T
6868end
6969
70- Tables. getcolumn (row:: DifferentiationBenchmarkDataRow , i:: Int ) = getfield (row, i)
71- Tables. getcolumn (row:: DifferentiationBenchmarkDataRow , nm:: Symbol ) = getfield (row, nm)
72- Tables. columnnames (row:: DifferentiationBenchmarkDataRow ) = fieldnames (typeof (row))
73-
7470"""
7571 DifferentiationBenchmark
7672
@@ -87,10 +83,23 @@ function DifferentiationBenchmark()
8783end
8884
8985Tables. istable (:: Type{DifferentiationBenchmark} ) = true
86+ DataAPI. nrow (data:: DifferentiationBenchmark ) = length (data. rows)
87+ DataAPI. ncol (data:: DifferentiationBenchmark ) = 12
88+
9089Tables. rowaccess (:: Type{DifferentiationBenchmark} ) = true
91- Tables. columnaccess (:: Type{DifferentiationBenchmark} ) = false
9290Tables. rows (data:: DifferentiationBenchmark ) = data. rows
9391
92+ Tables. getcolumn (row:: DifferentiationBenchmarkDataRow , i:: Int ) = getfield (row, i)
93+ Tables. getcolumn (row:: DifferentiationBenchmarkDataRow , nm:: Symbol ) = getproperty (row, nm)
94+ Tables. columnnames (row:: DifferentiationBenchmarkDataRow ) = fieldnames (typeof (row))
95+
96+ Tables. columnaccess (:: Type{DifferentiationBenchmark} ) = true
97+ Tables. columns (data:: DifferentiationBenchmark ) = data
98+
99+ Tables. getcolumn (cols:: DifferentiationBenchmark , i:: Int ) = getfield .(cols. rows, i)
100+ Tables. getcolumn (cols:: DifferentiationBenchmark , nm:: Symbol ) = getproperty .(cols. rows, nm)
101+ Tables. columnnames (cols:: DifferentiationBenchmark ) = fieldnames (eltype (cols. rows))
102+
94103"""
95104 run_benchmark!(...)
96105
0 commit comments