Skip to content

Commit

Permalink
ndarray doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed Oct 22, 2015
1 parent cf9a06a commit 3a26544
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/user-guide/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,13 @@ end

println(compare([inplace_op, normal_op], 100))
```
The comparison on my laptop shows that
The comparison on my laptop shows that `normal_op` while allocating a lot of temp `NDArray`s in the loop (the performance gets worse when increasing `N_REP`), is only about twice slower than the pre-allocated one.

| Row | Function | Average | Relative | Replications |
|-----|--------------|-----------|----------|--------------|
| 1 | "inplace_op" | 0.0074854 | 1.0 | 100 |
| 2 | "normal_op" | 0.0174202 | 2.32723 | 100 |

So it will typically not be a problem unless you are at the bottleneck of the computation (e.g. implementing some neural network layers in Julia).

## Distributed Key-value Store

0 comments on commit 3a26544

Please sign in to comment.