Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gm0stache/slicestudy
exploring slice props.
https://github.com/gm0stache/slicestudy
Last synced: about 1 month ago
JSON representation
exploring slice props.
- Host: GitHub
- URL: https://github.com/gm0stache/slicestudy
- Owner: gm0stache
- License: gpl-3.0
- Created: 2024-05-29T05:57:36.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T05:52:23.000Z (7 months ago)
- Last Synced: 2024-06-06T07:09:45.314Z (7 months ago)
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# slicestudy
### slice init test
just had to see for myself how stark the difference between different alloc and
indexing options is.
find the relevant file [here](sliceinit_test.go).### append test
manipulating slices affects the backing array and therefore all other slices
pointing to the same backing array.
find the relevant file [here](append_test.go).# how to run
### regular unit tests
- `go test ./...`### benchmarks
- simple: `go test -bench=.`
- multiple executions: `go test -bench=. -count=10`