![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
github.com/min0625/go-benchmark
$ go test -run=none -bench=. -v -test.v -benchmem map_size_hint_test.go
goos: windows
goarch: amd64
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Benchmark_Map_WithHint
Benchmark_Map_WithHint-8 15478039 100.9 ns/op 41 B/op 0 allocs/op
Benchmark_Map_WithoutHint
Benchmark_Map_WithoutHint-8 9017071 162.0 ns/op 78 B/op 0 allocs/op
PASS
ok command-line-arguments 3.318s
# macos
$ go test -run=none -bench=. -v -test.v -benchmem map_size_hint_test.go
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Benchmark_Map_WithHint
Benchmark_Map_WithHint-8 13493331 134.9 ns/op 28 B/op 0 allocs/op
Benchmark_Map_WithoutHint
Benchmark_Map_WithoutHint-8 8462964 208.6 ns/op 83 B/op 0 allocs/op
PASS
ok command-line-arguments 4.218s
$ go test -run=none -bench=. -v -test.v -benchmem slice_len_test.go
goos: windows
goarch: amd64
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Benchmark_Len_MultipleCall
Benchmark_Len_MultipleCall-8 1000000000 0.2445 ns/op 0 B/op 0 allocs/op
Benchmark_Len_SingleCall
Benchmark_Len_SingleCall-8 1000000000 0.2445 ns/op 0 B/op 0 allocs/op
PASS
ok command-line-arguments 0.577s
# macos
$ go test -run=none -bench=. -v -test.v -benchmem slice_len_test.go
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Benchmark_Len_MultipleCall
Benchmark_Len_MultipleCall-8 1000000000 0.2791 ns/op 0 B/op 0 allocs/op
Benchmark_Len_SingleCall
Benchmark_Len_SingleCall-8 1000000000 0.2784 ns/op 0 B/op 0 allocs/op
PASS
ok command-line-arguments 0.887s
$ go test -run=none -bench=. -v -test.v -benchmem int_to_string_test.go
goos: windows
goarch: amd64
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Benchmark_IntToString_itoa
Benchmark_IntToString_itoa-8 49804102 23.76 ns/op 7 B/op 0 allocs/op
Benchmark_IntToString_Sprint
Benchmark_IntToString_Sprint-8 16376864 70.86 ns/op 16 B/op 1 allocs/op
Benchmark_IntToString_Sprintf
Benchmark_IntToString_Sprintf-8 17159427 71.01 ns/op 16 B/op 1 allocs/op
PASS
ok command-line-arguments 3.777s
# macos
$ go test -run=none -bench=. -v -test.v -benchmem int_to_string_test.go
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Benchmark_IntToString_itoa
Benchmark_IntToString_itoa-8 38766657 29.39 ns/op 7 B/op 0 allocs/op
Benchmark_IntToString_Sprint
Benchmark_IntToString_Sprint-8 13931694 84.25 ns/op 16 B/op 1 allocs/op
Benchmark_IntToString_Sprintf
Benchmark_IntToString_Sprintf-8 13891971 86.87 ns/op 16 B/op 1 allocs/op
PASS
ok command-line-arguments 4.034s
$ go test -run=none -bench=. -v -test.v -benchmem bytes_to_string_test.go
goos: windows
goarch: amd64
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Benchmark_BytesToString_MultipleCall
Benchmark_BytesToString_MultipleCall-8 49451703 22.50 ns/op 64 B/op 1 allocs/op
Benchmark_BytesToString_SingleCall
Benchmark_BytesToString_SingleCall-8 1000000000 0.2582 ns/op 0 B/op 0 allocs/op
PASS
ok command-line-arguments 1.461s
# macos
$ go test -run=none -bench=. -v -test.v -benchmem bytes_to_string_test.go
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Benchmark_BytesToString_MultipleCall
Benchmark_BytesToString_MultipleCall-8 39791124 27.13 ns/op 64 B/op 1 allocs/op
Benchmark_BytesToString_SingleCall
Benchmark_BytesToString_SingleCall-8 1000000000 0.5532 ns/op 0 B/op 0 allocs/op
PASS
ok command-line-arguments 2.069s
$ go test -run=none -bench=. -v -test.v -benchmem string_to_bytes_test.go
goos: windows
goarch: amd64
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Benchmark_StringToBytes_MultipleCall
Benchmark_StringToBytes_MultipleCall-8 44851430 30.63 ns/op 64 B/op 1 allocs/op
Benchmark_StringToBytes_SingleCall
Benchmark_StringToBytes_SingleCall-8 1000000000 0.2484 ns/op 0 B/op 0 allocs/op
PASS
ok command-line-arguments 2.568s
# macos
$ go test -run=none -bench=. -v -test.v -benchmem string_to_bytes_test.go
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Benchmark_StringToBytes_MultipleCall
Benchmark_StringToBytes_MultipleCall-8 37792300 31.84 ns/op 64 B/op 1 allocs/op
Benchmark_StringToBytes_SingleCall
Benchmark_StringToBytes_SingleCall-8 1000000000 0.2748 ns/op 0 B/op 0 allocs/op
PASS
ok command-line-arguments 2.787s
$ go test -run=none -bench=. -v -test.v -benchmem append_with_capacity_test.go
goos: windows
goarch: amd64
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Benchmark_Append_WithCapacity
Benchmark_Append_WithCapacity-8 1000000000 1.200 ns/op 0 B/op 0 allocs/op
Benchmark_Append_WithoutCapacity
Benchmark_Append_WithoutCapacity-8 166767306 6.700 ns/op 42 B/op 0 allocs/op
PASS
ok command-line-arguments 6.416s
# macos
$ go test -run=none -bench=. -v -test.v -benchmem append_with_capacity_test.go
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Benchmark_Append_WithCapacity
Benchmark_Append_WithCapacity-8 1000000000 5.667 ns/op 0 B/op 0 allocs/op
Benchmark_Append_WithoutCapacity
Benchmark_Append_WithoutCapacity-8 36572540 35.75 ns/op 44 B/op 0 allocs/op
PASS
ok command-line-arguments 13.110s
$ go test -run=none -bench=. -v -test.v -benchmem append_vs_index_assign_test.go
goos: windows
goarch: amd64
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Benchmark_Slice_Append
Benchmark_Slice_Append-8 1000000000 1.090 ns/op 0 B/op 0 allocs/op
Benchmark_Slice_IndexAssign
Benchmark_Slice_IndexAssign-8 1000000000 1.113 ns/op 0 B/op 0 allocs/op
PASS
ok command-line-arguments 6.953s
# macos
$ go test -run=none -bench=. -v -test.v -benchmem append_vs_index_assign_test.go
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Benchmark_Slice_Append
Benchmark_Slice_Append-8 1000000000 1.284 ns/op 0 B/op 0 allocs/op
Benchmark_Slice_IndexAssign
Benchmark_Slice_IndexAssign-8 1000000000 0.8737 ns/op 0 B/op 0 allocs/op
PASS
ok command-line-arguments 9.490s
$ go test -run=none -bench=. -v -test.v -benchmem string_concatenation_test.go
goos: windows
goarch: amd64
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Benchmark_StringConcatenation_WithBuilder
Benchmark_StringConcatenation_WithBuilder-8 13478571 83.73 ns/op 340 B/op 0 allocs/op
Benchmark_StringConcatenation_WithPlusOperator
Benchmark_StringConcatenation_WithPlusOperator-8 36211 190210 ns/op 1126625 B/op 1 allocs/op
PASS
ok command-line-arguments 8.490s
# macos
$ go test -run=none -bench=. -v -test.v -benchmem string_concatenation_test.go
goos: darwin
goarch: amd64
cpu: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Benchmark_StringConcatenation_WithBuilder
Benchmark_StringConcatenation_WithBuilder-8 11365514 148.1 ns/op 347 B/op 0 allocs/op
Benchmark_StringConcatenation_WithPlusOperator
Benchmark_StringConcatenation_WithPlusOperator-8 37586 106943 ns/op 1169253 B/op 1 allocs/op
PASS
ok command-line-arguments 6.560s
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.