Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Memset() #9

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Add Memset() #9

merged 1 commit into from
Jul 22, 2024

Commits on Jul 22, 2024

  1. Add Memset()

    10x faster than a naive loop
    
    ```
    $ go test -bench=Memset
    goos: linux
    goarch: amd64
    pkg: github.com/bwesterb/go-and
    cpu: 13th Gen Intel(R) Core(TM) i9-13900
    BenchmarkMemset-32           	   73898	     15965 ns/op	62637.75 MB/s
    BenchmarkMemsetGeneric-32    	    6602	    168255 ns/op	5943.36 MB/s
    ```
    Jille committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    2832778 View commit details
    Browse the repository at this point in the history