Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.0 #1

Closed
15 tasks done
kawasin73 opened this issue Nov 7, 2018 · 1 comment
Closed
15 tasks done

v0.1.0 #1

kawasin73 opened this issue Nov 7, 2018 · 1 comment
Assignees

Comments

@kawasin73
Copy link
Owner

kawasin73 commented Nov 7, 2018

version 0.1.0 を実装する
最低限必要なインターフェイスを備えたものを作る

実装

インターフェイス

  • Set
  • Clear
  • Test
  • Find Last One
  • Find First Zero
  • Find First One

仕様

調査

@kawasin73 kawasin73 self-assigned this Nov 7, 2018
@kawasin73 kawasin73 changed the title バイトオーダーの検出 ビットベクトルの実装 Nov 7, 2018
@kawasin73 kawasin73 changed the title ビットベクトルの実装 v0.1.0 Nov 9, 2018
@kawasin73 kawasin73 mentioned this issue Nov 9, 2018
7 tasks
@kawasin73
Copy link
Owner Author

Benchmark

  • OS : macOS Sierra 10.12.6(16G1618)
  • PC : MacBook Pro (Retina, 13-inch, Early 2015)
  • CPU : 3.1 GHz Intel Core i7
  • Mem : 16 GB 1867 MHz DDR3
$ go test -bench=.
goos: darwin
goarch: amd64
pkg: github.com/kawasin73/bibit
BenchmarkBitVec_Set_LittleEndian-4     	300000000	         5.15 ns/op
BenchmarkBitVec_Set_BigEndian-4        	100000000	        13.1 ns/op
BenchmarkBitVec_Unset_LittleEndian-4   	300000000	         5.20 ns/op
BenchmarkBitVec_Unset_BigEndian-4      	100000000	        13.2 ns/op
BenchmarkBitVec_Get_LittleEndian-4     	300000000	         4.34 ns/op
BenchmarkBitVec_Get_BigEndian-4        	200000000	         8.00 ns/op
BenchmarkSwap-4                        	2000000000	         1.14 ns/op
PASS
ok  	github.com/kawasin73/bibit	13.474s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant