Skip to content

Commit

Permalink
Measure just arrow_plus performance
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Jun 3, 2024
1 parent a6248a1 commit 2f16308
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/Benchmarks/src/Table/Arithmetic.enso
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ foreign arrow int64_plus = """
+[Int64]

to_arrow t:Table =
column_to_arrow name:Text =
column_to_arrow name:Text -> Array =
v = t.at name . to_vector
builder = int64_new.new v.length
v.map e-> builder.append e
builder.build

[column_to_arrow "X", column_to_arrow "Y"]
x = column_to_arrow "X"
y = column_to_arrow "Y"
[x, y]

type Data
private Value ~lazy
Expand Down Expand Up @@ -73,7 +75,6 @@ collect_benches = Bench.build builder->

builder.group ("Arrow_Arithmetic_" + num_rows.to_text) options group_builder->
group_builder.specify "Plus_Fitting" <|
v = data.arrow_plus data.arrow_x data.arrow_y
IO.println <| v . take 100
data.arrow_plus data.arrow_x data.arrow_y

main = collect_benches . run_main

0 comments on commit 2f16308

Please sign in to comment.