Skip to content

hgfischer/go-type-assertion-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Naive performance test of doing type assertion using:

  • The static way

or...

  • Using reflection to avoid code repetition

Results

BenchmarkAppendNativeTypeAssertion       5000000           666 ns/op
BenchmarkAppendReflectionTypeAssertion   5000000           529 ns/op

Thanks to

  • Dan Kortschak <dan.kortschak@adel....edu.au>
  • Dmitry Vyukov <dvyukov@goo....com>
  • Xingtao Zhao <zhaoxingtao@gm....com>
  • Egon <egonelbre@gm....com>
  • Chris Dollin <ehog.hedge@goo...mail.com>

About

Naive performance test of two ways to do type assertion in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages