Skip to content

Commit

Permalink
benchmarks: also show 1-based index column selection technique
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Oct 5, 2023
1 parent 377c0c2 commit f2c24b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/benchmark_aggregations.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- version 1.1.1
-- version 1.1.2
-- this luau script is used by benchmarks.sh to compute records per second (recs_per_sec)
-- for each benchmark. It does this by retrieving the rowcount from the environment var
-- QSVBM_ROWCOUNT (which is set by benchmarks.sh by running "qsv count") and dividing it
Expand Down Expand Up @@ -38,6 +38,8 @@ rounded_mean = round(mean, 3);
-- rounded_mean = round(col.mean , 3);
-- or
-- rounded_mean = round(col['mean'] , 3);
-- or using a 1-based index, where the first column is 1:
-- rounded_mean = round(col[4] , 3);
-- this is especially useful if the column has embedded spaces or special characters
-- or if the column name is a luau keyword (like "end" or "function")

Expand Down

0 comments on commit f2c24b8

Please sign in to comment.