Skip to content

Commit 7a3f182

Browse files
committed
Few fixes microbench_low_level
1 parent e736a2f commit 7a3f182

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

bench/microbench_low_level/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ We measure the performance for functions containing low level Python code.
1818
- `instantiate` (command `make bench_instantiate`): dominated by the
1919
instantiation/deletion of small arrays of 4 floats.
2020

21+
- `element_wise` (command `make bench_element_wise`): dominated by the
22+
instantiation/deletion of small arrays of 4 floats and calling element-wise
23+
operations.
24+
2125
The files result_*.txt contain few results.

bench/microbench_low_level/bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def element_wise(arr):
152152
compute_from_arr = locals()[name_bench]
153153

154154
if size is None:
155-
if method.startswith("sum_loop") or method == "cort":
155+
if name_bench.startswith("sum_loop") or name_bench == "cort":
156156
size = 10000
157157
else:
158158
size = 4

bench/microbench_low_level/julia/bench_element_wise.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ for irun in 1:nb_runs
2727
times[irun] = @elapsed compute_from_arr(arr)
2828
end
2929

30-
println(median(times))
30+
println(median(times))

bench/microbench_low_level/result_sum_loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ piconumpy.cpython_capi : 2.90e-03 s (219.1 * Julia)
5656

5757
## Summary
5858

59-
- PyPy is fast with list (1.3 * Julia, same order of magnitude that with Julia)
59+
- PyPy is fast with list (1.3 * Julia, same order of magnitude than with Julia)
6060
and as fast for a piconumpy array based on a list ("piconumpy.purepy", zero
6161
cost abstraction!)
6262

0 commit comments

Comments
 (0)