Skip to content

Commit 898e69e

Browse files
committed
add: bench
1 parent 8aae853 commit 898e69e

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

BENCHMARKS.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Benchmarks
2+
3+
## BIK
4+
5+
goos: darwin
6+
goarch: arm64
7+
pkg: github.com/sshaplygin/docs-code/bik
8+
BenchmarkValidateCorrect-10 8064954 140.7 ns/op 256 B/op 3 allocs/op
9+
BenchmarkGenerate-10 615589 1972 ns/op 240 B/op 18 allocs/op
10+
PASS
11+
ok github.com/sshaplygin/docs-code/bik 2.635s
12+
13+
## INN
14+
15+
goos: darwin
16+
goarch: arm64
17+
pkg: github.com/sshaplygin/docs-code/inn
18+
BenchmarkValidateCorrectLegal-10 2719714 443.8 ns/op 616 B/op 23 allocs/op
19+
BenchmarkValidateCorrectPhysical-10 2076355 576.6 ns/op 936 B/op 30 allocs/op
20+
BenchmarkGenerate-10 394204 3133 ns/op 875 B/op 42 allocs/op
21+
BenchmarkGenerateLegal-10 354616 3213 ns/op 801 B/op 41 allocs/op
22+
BenchmarkGeneratePhysical-10 492985 2419 ns/op 974 B/op 41 allocs/op
23+
PASS
24+
ok github.com/sshaplygin/docs-code/inn 7.215s
25+
26+
## KPP
27+
28+
goos: darwin
29+
goarch: arm64
30+
pkg: github.com/sshaplygin/docs-code/kpp
31+
BenchmarkValidateCorrect-10 5280958 218.9 ns/op 216 B/op 8 allocs/op
32+
BenchmarkGenerate-10 484114 2434 ns/op 385 B/op 22 allocs/op
33+
PASS
34+
ok github.com/sshaplygin/docs-code/kpp 2.810s
35+
36+
## OGRN
37+
38+
goos: darwin
39+
goarch: arm64
40+
pkg: github.com/sshaplygin/docs-code/ogrn
41+
BenchmarkValidateCorrect-10 2583738 457.3 ns/op 728 B/op 18 allocs/op
42+
BenchmarkGenerate-10 294908 3938 ns/op 841 B/op 45 allocs/op
43+
PASS
44+
ok github.com/sshaplygin/docs-code/ogrn 3.074s
45+
46+
## OGRNIP
47+
48+
goos: darwin
49+
goarch: arm64
50+
pkg: github.com/sshaplygin/docs-code/ogrnip
51+
BenchmarkValidateCorrect-10 1991065 580.4 ns/op 1008 B/op 24 allocs/op
52+
BenchmarkGenerate-10 403179 3100 ns/op 1010 B/op 46 allocs/op
53+
PASS
54+
ok github.com/sshaplygin/docs-code/ogrnip 3.411s

0 commit comments

Comments
 (0)