-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: avoid using pointer for parameters
This change re-writes the vector and matrix utilities and avoid using pointers in function parameters and return type. See golang.design/s/research for details. Benchmarks: name old time/op new time/op delta LoadObj-16 102ms ± 0% 102ms ± 1% ~ (p=0.631 n=10+10) Rasterizer/concurrent-size_1-16 52.2ms ± 1% 53.1ms ± 1% +1.87% (p=0.000 n=10+10) Rasterizer/concurrent-size_2-16 26.9ms ± 1% 26.7ms ± 1% -0.69% (p=0.004 n=10+10) Rasterizer/concurrent-size_4-16 15.1ms ± 0% 14.5ms ± 0% -4.53% (p=0.000 n=10+10) Rasterizer/concurrent-size_8-16 10.0ms ± 0% 9.2ms ± 1% -8.07% (p=0.000 n=10+10) Rasterizer/concurrent-size_16-16 8.01ms ± 0% 7.50ms ± 1% -6.34% (p=0.000 n=9+10) Rasterizer/concurrent-size_32-16 7.43ms ± 0% 6.98ms ± 1% -5.93% (p=0.000 n=9+10) Rasterizer/concurrent-size_64-16 7.26ms ± 0% 6.81ms ± 1% -6.25% (p=0.000 n=9+10) Rasterizer/concurrent-size_128-16 7.18ms ± 0% 6.72ms ± 0% -6.41% (p=0.000 n=10+10) Rasterizer/concurrent-size_256-16 7.19ms ± 0% 6.72ms ± 1% -6.49% (p=0.000 n=10+10) Rasterizer/concurrent-size_512-16 7.17ms ± 0% 6.74ms ± 1% -6.11% (p=0.000 n=10+9) Rasterizer/concurrent-size_1024-16 7.35ms ± 0% 6.87ms ± 0% -6.56% (p=0.000 n=9+9)
- Loading branch information
Showing
12 changed files
with
303 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.