Setting up complex values for `Deno.bench` function runs
i'm currently exploring the
in the simplest case, let's say we wanted to compare two functions that mutate a given array, but that array is nontrivially large:
the problem with these benches is that they build the data within the benchmark function, which i do not want to measure as part of the benchmark.
i couldn't find an analog
bench tools in Deno and have come across a case where i can't seem to be able to implement.in the simplest case, let's say we wanted to compare two functions that mutate a given array, but that array is nontrivially large:
the problem with these benches is that they build the data within the benchmark function, which i do not want to measure as part of the benchmark.
i couldn't find an analog
prerun function in the docs, is there a way to pass data created outside the measured function to it? something like: