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
package benchmark | |
import ( | |
"context" | |
"runtime" | |
"sync" | |
"sync/atomic" | |
"testing" | |
"time" | |
) |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"time" | |
"github.com/hajimehoshi/ebiten/v2" | |
"github.com/hajimehoshi/ebiten/v2/ebitenutil" |
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
class: \BenchmarkImplode | |
BenchmarkImplode::EmptyArray 595240 16.0 ns/op | |
BenchmarkImplode::EmptyArray 769240 16.0 ns/op | |
BenchmarkImplode::EmptyArray 1515160 16.0 ns/op | |
BenchmarkImplode::EmptyArray 1282060 16.0 ns/op | |
BenchmarkImplode::EmptyArray 1538480 17.0 ns/op | |
BenchmarkImplode::EmptyArray 1754400 16.0 ns/op | |
BenchmarkImplode::EmptyArray 1515160 16.0 ns/op | |
BenchmarkImplode::EmptyArray 1666680 16.0 ns/op | |
BenchmarkImplode::EmptyArray 1562500 16.0 ns/op |
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
class: \BenchmarkImplode | |
BenchmarkImplode::EmptyArray 917440 18.0 ns/op | |
BenchmarkImplode::EmptyArray 1449280 18.0 ns/op | |
BenchmarkImplode::EmptyArray 952380 18.0 ns/op | |
BenchmarkImplode::EmptyArray 694460 18.0 ns/op | |
BenchmarkImplode::EmptyArray 1587320 18.0 ns/op | |
BenchmarkImplode::EmptyArray 1754400 19.0 ns/op | |
BenchmarkImplode::EmptyArray 1754400 19.0 ns/op | |
BenchmarkImplode::EmptyArray 1219520 17.0 ns/op | |
BenchmarkImplode::EmptyArray 1562500 19.0 ns/op |
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
opcode | encoding | mode32 | mode64 | cpuid | tags | rw_actions | multisize | datasize | |
---|---|---|---|---|---|---|---|---|---|
NOP | 90+rd | V | V | operand32,operand64 | Y | ||||
NOP | 90+rw | V | V | operand16,operand64 | Y | ||||
NOP | F3 90+rd | V | V | operand32 | Y | ||||
NOP | F3 90+rw | V | V | operand16 | Y | ||||
NOP r/m32 | 0F 18 /4 | V | V | operand32 | r | Y | 32 | ||
NOP r/m32 | 0F 18 /5 | V | V | operand32 | r | Y | 32 | ||
NOP r/m32 | 0F 18 /6 | V | V | operand32 | r | Y | 32 | ||
NOP r/m32 | 0F 18 /7 | V | V | operand32 | r | Y | 32 | ||
NOP r/m32, r32 | 0F 19 /r | V | V | operand32 | r,r | Y | 32 |
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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"time" | |
) | |
// Запускать через "go run no_preempt.go". | |
// См. также: https://github.com/golang/go/issues/10958. |
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
package main | |
import "sync" | |
// Запустите с помощью "go run -race datarace.go". | |
var globalX int | |
func main() { | |
var wg sync.WaitGroup |
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
goos: linux | |
goarch: amd64 | |
pkg: bench | |
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz | |
BenchmarkBufferWrite/len1_x1-8 12748204 95.32 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 12389413 95.25 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 12452178 92.79 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 12876642 96.28 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 13010896 94.67 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 12296984 95.91 ns/op 64 B/op 1 allocs/op |
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
goos: linux | |
goarch: amd64 | |
pkg: bench | |
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz | |
BenchmarkBufferWrite/len1_x1-8 13595941 95.07 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 13895242 94.19 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 12867998 95.91 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 12298687 94.02 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 13148979 95.40 ns/op 64 B/op 1 allocs/op | |
BenchmarkBufferWrite/len1_x1-8 12081237 95.04 ns/op 64 B/op 1 allocs/op |
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
package main | |
import ( | |
"bytes" | |
"encoding/xml" | |
"fmt" | |
"html/template" | |
"strings" | |
"testing" | |
) |
NewerOlder