Skip to content

Commit 0849ab3

Browse files
committed
update timings with @unsafe annotation.
1 parent d9dcb5d commit 0849ab3

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,18 @@ the book _Numerical Solution of Hyperbolic Partial Differential Equations_ by pr
102102
see more details here
103103
+ [room for performance improvement for SubArray #5117](https://github.com/JuliaLang/julia/issues/5117)
104104

105-
Timings for baseline:
105+
Timing for baseline with `@unsafe` macro annotation:
106106
```sh
107-
822.768 milliseconds (89601 allocations: 4421 KB)
108-
593.164 milliseconds (40 allocations: 236 KB)
107+
0.103402 seconds (21 allocations: 235.531 KB)
109108
```
110-
for `sub` version:
109+
110+
Timing for `OffsetArray` version with `@unsafe` macro annotation:
111+
```sh
112+
0.103987 seconds (16 allocations: 235.094 KB)
113+
```
114+
115+
for `sub` macro version with `@unsafe` macro annotation (doesn't work without `@unsafe`):
111116
```
112-
1.250 seconds (223 k allocations: 9697 KB, 2.41% gc time)
113-
823.135 milliseconds (19507 allocations: 540 KB)
117+
0.105967 seconds (217 allocations: 268.094 KB)
114118
```
115-
The 2nd timing is after warming up.
119+
Only the 2nd timing after warming up is given.

0 commit comments

Comments
 (0)