dogfootman.com

  • 홈
  • 태그
  • 방명록

성능 1

[Go] Benchmark 사용법 (How to Use Benchmarks)

개요Benchmark의 사용법  1. 기본 사용법func BenchmarkXxx(*testing.B) 의 형태를 가지고 있으면 벤치마크로 간주되며-bench 의 플러그가 있으면 go test 의 명령에 의해서 실행된다  샘플코드package main...func BenchmarkDeepCopyManual(b *testing.B) { original := Student{ Name: "Alice", Age: 21, Hobbies: []string{"Reading", "Cycling", "Swimming"}, Address: Address{ City: "San Francisco", State: "CA", }, } for i := 0; i 와 같이 작성해 xxx_test.go 의 ..

[Go] 2024.06.25
이전
1
다음
더보기
  • View All Categories (13)
    • [Unity] (3)
      • [Unity 2D] (3)
    • [Go] (9)
    • [ETC] (1)

Tag

benchmark, API, Golang, Interface, struct, scroll wheel, gob, 고랭, Camera, cycle not allowed, Dependency, mouse position, test, Unity, Slice, Unity 2D, deep copy, pre-request script, go, Performance,

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바