Skip to content

Instantly share code, notes, and snippets.

View AudriusButkevicius's full-sized avatar

Audrius Butkevicius AudriusButkevicius

View GitHub Profile
trace:crypt:CryptAcquireContextW (0x180ea88, (null), (null), 1, f0000040)
trace:crypt:RSAENH_CPAcquireContext (phProv=0xa7df780, pszContainer=(null), dwFlags=f0000040, pVTable=0xa7df800)
trace:crypt:CryptGenRandom (0xa7df770, 32, 0x180eaac)
trace:crypt:RSAENH_CPGenRandom (hProv=00000001, dwLen=32, pbBuffer=0x180eaac)
trace:crypt:CryptReleaseContext (0xa7df770, 00000000)
trace:crypt:RSAENH_CPReleaseContext (hProv=00000001, dwFlags=00000000)
trace:crypt:CertCloseStore ((nil), 00000000)
trace:crypt:CertFreeCertificateChainEngine ((nil))
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>
package dummy
import (
"errors"
"runtime"
"syscall"
"unsafe"
)
type CredentialsPromptFlag uint32
@AudriusButkevicius
AudriusButkevicius / README.md
Created November 6, 2016 00:03 — forked from csabahenk/README.md
Rsync rolling sum calculation in various languages

Rsync rolling sum calculation in various languages

The programs below calculate the rsync weak sum (of block size 4096) of the last block of the data available on stdin.

The data is assumed to be at least block size big; the weak sum is calculated in a direct manner for the first block, and from that on, the sum is adjusted on each incoming byte using the "rollability" of this kind of checksum.

The primary goal was to see the performance of naive implementations; so my metrics was both performance and "how close is the code to

package main
import(
"fmt"
"net"
"github.com/ccding/go-stun/stun"
)
func main(){
package main
import(
"fmt"
"github.com/ccding/go-stun/stun"
)
func main(){
c := stun.NewClient()
Audrius@Audrius gohashcompare $ go run main.go
Build: go1.7beta2 windows-amd64
testing: warning: no tests to run
Blake2b 256-4 5000 313853 ns/op 417.62 MB/s 32 B/op 1 allocs/op
Blake2b 256 Modified-4 5000 309857 ns/op 423.01 MB/s 32 B/op 1 allocs/op
Blake2b 256 SIMD-4 10000 198329 ns/op 660.88 MB/s 32 B/op 1 allocs/op
Blake2b 512-4 5000 311300 ns/op 421.05 MB/s 64 B/op 1 allocs/op
Blake2b 512 Modified-4 5000 306372 ns/op 427.82 MB/s 64 B/op 1 allocs/op
Blake2b 512 SIMD-4 10000 197811 ns/op 662.61 MB/s 64 B/op 1 allocs/op
Blake2s 256-4 3000 504822 ns/op 259.64 MB/s 32 B/op 1 allocs/op