-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests-go.txt
956 lines (661 loc) · 22.8 KB
/
run-tests-go.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
Running automated test file(s):
Go packages: house
===============================================================================
Running: ../../.github/citools/go/go-lint-golangci-lint
Running GoLangCi-Lint
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.023s
user 0m0.023s
sys 0m0.020s
==============================================================================
Running: golangci-lint run --enable-all ./...
level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive."
level=warning msg="[runner] The linter 'ifshort' is deprecated (since v1.48.0) due to: The repository of the linter has been deprecated by the owner. "
level=warning msg="[runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. "
level=warning msg="[runner] The linter 'nosnakecase' is deprecated (since v1.48.1) due to: The repository of the linter has been deprecated by the owner. Replaced by revive(var-naming)."
level=warning msg="[runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] The linter 'maligned' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. Replaced by govet 'fieldalignment'."
level=warning msg="[runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref."
level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] The linter 'exhaustivestruct' is deprecated (since v1.46.0) due to: The owner seems to have abandoned the linter. Replaced by exhaustruct."
level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
house_examples_test.go:26: Function 'ExampleSong' is too long (92 > 60) (funlen)
func ExampleSong() {
house_test.go:20:28: Comment should end in a period (godot)
// song copied from README
^
house_test.go:117:20: Using the variable on range scope `v` in function literal (scopelint)
if got := Verse(v + 1); got != expectedVerses[v] {
^
house_test.go:118:48: Using the variable on range scope `v` in function literal (scopelint)
t.Fatalf("Verse(%d)\ngot:\n%q\nwant:\n%q", v+1, got, expectedVerses[v])
^
house_test.go:132:2: only one cuddle assignment allowed before if statement (wsl)
if wantStanzas != gotStanzas {
^
house_test.go:135:2: assignments should only be cuddled with other assignments (wsl)
got := strings.Split(s, "\n")
^
house_test.go:137:2: declarations should never be cuddled (wsl)
var g, w string
^
house_test.go:138:2: declarations should never be cuddled (wsl)
var i int
^
house_test.go:144:3: if statements should only be cuddled with assignments (wsl)
if g = got[i]; g != w {
^
house_test.go:139:2: only one cuddle assignment allowed before range statement (wsl)
for i, w = range want {
^
house_test.go:148:2: expressions should not be cuddled with blocks (wsl)
t.Fatalf("Song() line %d =\n[%q]\n want \n[%q]", i+1, g, w)
^
house_test.go:155:2: for statements should only be cuddled with assignments used in the iteration (wsl)
for i := 0; i < b.N; i++ {
^
house_test.go:166:2: for statements should only be cuddled with assignments used in the iteration (wsl)
for i := 0; i < b.N; i++ {
^
house_test.go:2:1: Duplicate words (using) found (dupword)
// Try using using programmatic recursion to generate the verses of the song,
^
house_test.go:21:2: expectedSong is a global variable (gochecknoglobals)
expectedSong = `This is the house that Jack built.
^
house_test.go:111:2: expectedVerses is a global variable (gochecknoglobals)
expectedVerses = strings.Split(expectedSong, "\n\n")
^
house.go:77:11: mnd: Magic number: 12, in <condition> detected (gomnd)
if i != 12 {
^
house_test.go:142:4: break with no blank line before (nlreturn)
break
^
house_test.go:114:1: Function TestVerse missing the call to method parallel (paralleltest)
func TestVerse(t *testing.T) {
^
house_test.go:124:1: Function TestSong missing the call to method parallel (paralleltest)
func TestSong(t *testing.T) {
^
house_examples_test.go:1:9: package should be `house_test` instead of `house` (testpackage)
package house
^
house_test.go:11:9: package should be `house_test` instead of `house` (testpackage)
package house
^
house.go:50:6: variable name 'i' is too short for the scope of its usage (varnamelen)
for i, j := 0, level; i <= level; i, j = i+1, j-1 {
^
house_test.go:125:2: variable name 's' is too short for the scope of its usage (varnamelen)
s := Song()
^
real 0m0.468s
user 0m0.745s
sys 0m0.419s
==============================================================================
Exit code: -1
real 0m0.504s
user 0m0.776s
sys 0m0.446s
real 0m0.505s
user 0m0.777s
sys 0m0.447s
===============================================================================
Running: ../../.github/citools/go/go-lint-revive
Running Go Lint Revive
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.025s
user 0m0.018s
sys 0m0.028s
==============================================================================
Running: revive -formatter=stylish ./...
real 0m0.038s
user 0m0.021s
sys 0m0.027s
==============================================================================
Exit code: 0
real 0m0.072s
user 0m0.041s
sys 0m0.066s
real 0m0.074s
user 0m0.042s
sys 0m0.067s
===============================================================================
Running: ../../.github/citools/go/go-lint-ineffassign
../run-tests: line 41: .github/citools/go/go-lint-ineffassign: No such file or directory
real 0m0.001s
user 0m0.001s
sys 0m0.000s
===============================================================================
Running: ../../.github/citools/go/go-lint-go-consistent
Running Go go-consistent
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.026s
user 0m0.024s
sys 0m0.027s
==============================================================================
Running: go-consistent -v ./...
info: check "./."
internal error: package "fmt" without types was imported from "house"
real 0m0.083s
user 0m0.119s
sys 0m0.113s
==============================================================================
Exit code: -1
real 0m0.124s
user 0m0.151s
sys 0m0.153s
real 0m0.126s
user 0m0.152s
sys 0m0.154s
===============================================================================
Running: ../../.github/citools/go/go-lint-staticcheck
Running Go StaticCheck
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.022s
user 0m0.022s
sys 0m0.022s
==============================================================================
Running: staticcheck -checks=all ./...
real 0m0.162s
user 0m0.199s
sys 0m0.115s
==============================================================================
Exit code: 0
real 0m0.195s
user 0m0.225s
sys 0m0.149s
real 0m0.197s
user 0m0.225s
sys 0m0.150s
===============================================================================
Running: ../../.github/citools/go/go-lint-gocritic
Running Go gocritic
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.031s
user 0m0.025s
sys 0m0.030s
==============================================================================
Running: gocritic check -enableAll ./...
real 0m0.834s
user 0m2.162s
sys 0m0.307s
==============================================================================
Exit code: 0
real 0m0.878s
user 0m2.193s
sys 0m0.348s
real 0m0.880s
user 0m2.194s
sys 0m0.349s
===============================================================================
Running: ../../.github/citools/go/go-lint-go_vet
Running Go Vet
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.023s
user 0m0.019s
sys 0m0.022s
==============================================================================
Running: go vet ./...
real 0m0.082s
user 0m0.109s
sys 0m0.077s
==============================================================================
Exit code: 0
real 0m0.116s
user 0m0.135s
sys 0m0.108s
real 0m0.117s
user 0m0.136s
sys 0m0.109s
===============================================================================
Running: ../../.github/citools/go/go-fixer-go_fix
Running go fix
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.023s
user 0m0.019s
sys 0m0.023s
==============================================================================
Running: go fix ./...
real 0m0.024s
user 0m0.016s
sys 0m0.022s
==============================================================================
Exit code: 0
real 0m0.058s
user 0m0.042s
sys 0m0.056s
real 0m0.061s
user 0m0.042s
sys 0m0.059s
===============================================================================
Running: ../../.github/citools/go/go-lint-errcheck
Running Go errcheck
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.034s
user 0m0.030s
sys 0m0.036s
==============================================================================
Running: errcheck ./...
real 0m0.444s
user 0m1.233s
sys 0m0.263s
==============================================================================
Exit code: 0
real 0m0.491s
user 0m1.271s
sys 0m0.307s
real 0m0.493s
user 0m1.272s
sys 0m0.308s
===============================================================================
Running: ../../.github/citools/go/go-lint-gocyclo
Running Go gocyclo
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.024s
user 0m0.018s
sys 0m0.021s
==============================================================================
Running: gocyclo .
6 house TestSong house_test.go:124:1
6 house Verse house.go:10:1
4 house BenchmarkVerse house_test.go:151:1
3 house BenchmarkSong house_test.go:162:1
3 house TestVerse house_test.go:114:1
3 house Song house.go:70:1
1 house ExampleSong house_examples_test.go:26:1
1 house ExampleVerse house_examples_test.go:5:1
real 0m0.003s
user 0m0.001s
sys 0m0.002s
==============================================================================
Exit code: 0
real 0m0.041s
user 0m0.024s
sys 0m0.036s
real 0m0.043s
user 0m0.024s
sys 0m0.038s
===============================================================================
Running: ../../.github/citools/go/go-lint-misspell
Running Go misspell
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: misspell .
real 0m0.025s
user 0m0.031s
sys 0m0.006s
==============================================================================
Exit code: 0
real 0m0.038s
user 0m0.038s
sys 0m0.016s
real 0m0.040s
user 0m0.040s
sys 0m0.016s
===============================================================================
Running: ../../.github/citools/go/go-lint-gosec
Running Go GoSec
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.027s
user 0m0.027s
sys 0m0.022s
==============================================================================
Running: gosec ./...
[gosec] 2023/09/07 00:23:51 Including rules: default
[gosec] 2023/09/07 00:23:51 Excluding rules: default
[gosec] 2023/09/07 00:23:51 Import directory: /home/vpayno/git_vpayno/exercism-workspace/go/house
[gosec] 2023/09/07 00:23:51 Checking package: house
[gosec] 2023/09/07 00:23:51 Checking file: /home/vpayno/git_vpayno/exercism-workspace/go/house/house.go
Results:
[1;36mSummary:[0m
Gosec : dev
Files : 1
Lines : 84
Nosec : 0
Issues : [1;32m0[0m
real 0m0.129s
user 0m0.141s
sys 0m0.100s
==============================================================================
Exit code: 0
real 0m0.167s
user 0m0.174s
sys 0m0.132s
real 0m0.169s
user 0m0.176s
sys 0m0.132s
===============================================================================
Running: ../../.github/citools/go/go-test-cover-report
Running Go Test, Coverage & Reports
Go version:
go version go1.21.0 linux/amd64
==============================================================================
Running: go clean ./...
real 0m0.023s
user 0m0.021s
sys 0m0.020s
==============================================================================
Running: gotest -v -covermode=count -coverprofile coverage.out ./...
=== RUN TestVerse
=== RUN TestVerse/verse_1
=== RUN TestVerse/verse_2
=== RUN TestVerse/verse_3
=== RUN TestVerse/verse_4
=== RUN TestVerse/verse_5
=== RUN TestVerse/verse_6
=== RUN TestVerse/verse_7
=== RUN TestVerse/verse_8
=== RUN TestVerse/verse_9
=== RUN TestVerse/verse_10
=== RUN TestVerse/verse_11
=== RUN TestVerse/verse_12
--- PASS: TestVerse (0.00s)
--- PASS: TestVerse/verse_1 (0.00s)
--- PASS: TestVerse/verse_2 (0.00s)
--- PASS: TestVerse/verse_3 (0.00s)
--- PASS: TestVerse/verse_4 (0.00s)
--- PASS: TestVerse/verse_5 (0.00s)
--- PASS: TestVerse/verse_6 (0.00s)
--- PASS: TestVerse/verse_7 (0.00s)
--- PASS: TestVerse/verse_8 (0.00s)
--- PASS: TestVerse/verse_9 (0.00s)
--- PASS: TestVerse/verse_10 (0.00s)
--- PASS: TestVerse/verse_11 (0.00s)
--- PASS: TestVerse/verse_12 (0.00s)
=== RUN TestSong
--- PASS: TestSong (0.00s)
=== RUN ExampleVerse
--- PASS: ExampleVerse (0.00s)
=== RUN ExampleSong
--- PASS: ExampleSong (0.00s)
PASS
coverage: 95.5% of statements
ok house 0.002s coverage: 95.5% of statements
real 0m0.180s
user 0m0.233s
sys 0m0.142s
==============================================================================
Running: go tool cover -func=coverage.out
house/house.go:10: Verse 93.3%
house/house.go:70: Song 100.0%
total: (statements) 95.5%
real 0m0.061s
user 0m0.073s
sys 0m0.080s
==============================================================================
Running: go tool cover -html coverage.out -o coverage.html
real 0m0.047s
user 0m0.049s
sys 0m0.072s
==============================================================================
Running: cover_annotate
Running: gocov convert coverage.out | gocov annotate -ceiling=100 - | tee coverage-annotations.txt
10 func Verse(level int) string {
11 level--
12
13 if level < 0 || level > 11 {
14 MISS return ""
15 }
16
17 part1 := map[string]string{
18 "0": "This is the",
19 "horse and the hound and the horn": "This is the",
20 "farmer sowing his corn": "that belonged to the",
21 "rooster that crowed in the morn": "that kept the",
22 "priest all shaven and shorn": "that woke the",
23 "man all tattered and torn": "that married the",
24 "maiden all forlorn": "that kissed the",
25 "cow with the crumpled horn": "that milked the",
26 "dog": "that tossed the",
27 "cat": "that worried the",
28 "rat": "that killed the",
29 "malt": "that ate the",
30 "house that Jack built.": "that lay in the",
31 }
32
33 part2 := map[int]string{
34 11: "horse and the hound and the horn",
35 10: "farmer sowing his corn",
36 9: "rooster that crowed in the morn",
37 8: "priest all shaven and shorn",
38 7: "man all tattered and torn",
39 6: "maiden all forlorn",
40 5: "cow with the crumpled horn",
41 4: "dog",
42 3: "cat",
43 2: "rat",
44 1: "malt",
45 0: "house that Jack built.",
46 }
47
48 var verse strings.Builder
49
50 for i, j := 0, level; i <= level; i, j = i+1, j-1 {
51 var line strings.Builder
52
53 if i == 0 {
54 line.WriteString(fmt.Sprintf("%s %s", part1["0"], part2[j]))
55 } else {
56 line.WriteString(fmt.Sprintf("%s %s", part1[part2[j]], part2[j]))
57 }
58
59 verse.WriteString(line.String())
60
61 if i != level {
62 verse.WriteString("\n")
63 }
64 }
65
66 return verse.String()
67 }
real 0m0.019s
user 0m0.019s
sys 0m0.020s
real 0m0.020s
user 0m0.019s
sys 0m0.020s
==============================================================================
Running: gotest -v -race -covermode=atomic ./...
=== RUN TestVerse
=== RUN TestVerse/verse_1
=== RUN TestVerse/verse_2
=== RUN TestVerse/verse_3
=== RUN TestVerse/verse_4
=== RUN TestVerse/verse_5
=== RUN TestVerse/verse_6
=== RUN TestVerse/verse_7
=== RUN TestVerse/verse_8
=== RUN TestVerse/verse_9
=== RUN TestVerse/verse_10
=== RUN TestVerse/verse_11
=== RUN TestVerse/verse_12
--- PASS: TestVerse (0.00s)
--- PASS: TestVerse/verse_1 (0.00s)
--- PASS: TestVerse/verse_2 (0.00s)
--- PASS: TestVerse/verse_3 (0.00s)
--- PASS: TestVerse/verse_4 (0.00s)
--- PASS: TestVerse/verse_5 (0.00s)
--- PASS: TestVerse/verse_6 (0.00s)
--- PASS: TestVerse/verse_7 (0.00s)
--- PASS: TestVerse/verse_8 (0.00s)
--- PASS: TestVerse/verse_9 (0.00s)
--- PASS: TestVerse/verse_10 (0.00s)
--- PASS: TestVerse/verse_11 (0.00s)
--- PASS: TestVerse/verse_12 (0.00s)
=== RUN TestSong
--- PASS: TestSong (0.00s)
=== RUN ExampleVerse
--- PASS: ExampleVerse (0.00s)
=== RUN ExampleSong
--- PASS: ExampleSong (0.00s)
PASS
coverage: 95.5% of statements
ok house 1.012s coverage: 95.5% of statements
real 0m1.230s
user 0m0.265s
sys 0m0.141s
==============================================================================
Exit code: 0
real 0m1.571s
user 0m0.666s
sys 0m0.485s
real 0m1.574s
user 0m0.668s
sys 0m0.486s
===============================================================================
mv -v benchstat-new.txt benchstat-old.txt
renamed 'benchstat-new.txt' -> 'benchstat-old.txt'
gotest -v --run=xxx --bench . --benchmem |& tee benchstat-new.txt
goos: linux
goarch: amd64
pkg: house
cpu: 12th Gen Intel(R) Core(TM) i5-1240P
BenchmarkVerse
BenchmarkVerse-8 36183 31771 ns/op 33333 B/op 379 allocs/op
BenchmarkSong
BenchmarkSong-8 35149 31843 ns/op 40391 B/op 387 allocs/op
PASS
ok house 2.956s
real 0m3.114s
user 0m3.305s
sys 0m0.275s
===============================================================================
gotest -v -tags bonus
=== RUN TestVerse
=== RUN TestVerse/verse_1
=== RUN TestVerse/verse_2
=== RUN TestVerse/verse_3
=== RUN TestVerse/verse_4
=== RUN TestVerse/verse_5
=== RUN TestVerse/verse_6
=== RUN TestVerse/verse_7
=== RUN TestVerse/verse_8
=== RUN TestVerse/verse_9
=== RUN TestVerse/verse_10
=== RUN TestVerse/verse_11
=== RUN TestVerse/verse_12
--- PASS: TestVerse (0.00s)
--- PASS: TestVerse/verse_1 (0.00s)
--- PASS: TestVerse/verse_2 (0.00s)
--- PASS: TestVerse/verse_3 (0.00s)
--- PASS: TestVerse/verse_4 (0.00s)
--- PASS: TestVerse/verse_5 (0.00s)
--- PASS: TestVerse/verse_6 (0.00s)
--- PASS: TestVerse/verse_7 (0.00s)
--- PASS: TestVerse/verse_8 (0.00s)
--- PASS: TestVerse/verse_9 (0.00s)
--- PASS: TestVerse/verse_10 (0.00s)
--- PASS: TestVerse/verse_11 (0.00s)
--- PASS: TestVerse/verse_12 (0.00s)
=== RUN TestSong
--- PASS: TestSong (0.00s)
=== RUN ExampleVerse
--- PASS: ExampleVerse (0.00s)
=== RUN ExampleSong
--- PASS: ExampleSong (0.00s)
PASS
ok house 0.002s
real 0m0.131s
user 0m0.171s
sys 0m0.110s
===============================================================================
benchstat benchstat-old.txt benchstat-new.txt
benchstat-old.txt:5: missing iteration count
benchstat-old.txt:7: missing iteration count
benchstat-new.txt:5: missing iteration count
benchstat-new.txt:7: missing iteration count
goos: linux
goarch: amd64
pkg: house
cpu: 12th Gen Intel(R) Core(TM) i5-1240P
│ benchstat-new.txt │
│ sec/op │
Verse-8 31.77µ ± ∞ ¹
Song-8 31.84µ ± ∞ ¹
geomean 31.81µ
¹ need >= 6 samples for confidence interval at level 0.95
│ benchstat-new.txt │
│ B/op │
Verse-8 32.55Ki ± ∞ ¹
Song-8 39.44Ki ± ∞ ¹
geomean 35.83Ki
¹ need >= 6 samples for confidence interval at level 0.95
│ benchstat-new.txt │
│ allocs/op │
Verse-8 379.0 ± ∞ ¹
Song-8 387.0 ± ∞ ¹
geomean 383.0
¹ need >= 6 samples for confidence interval at level 0.95
cpu: Intel(R) Core(TM) i7-7Y75 CPU @ 1.30GHz
│ benchstat-old.txt │
│ sec/op │
Verse-4 98.90µ ± ∞ ¹
Song-4 127.4µ ± ∞ ¹
geomean 112.3µ
¹ need >= 6 samples for confidence interval at level 0.95
│ benchstat-old.txt │
│ B/op │
Verse-4 26.67Ki ± ∞ ¹
Song-4 33.58Ki ± ∞ ¹
geomean 29.93Ki
¹ need >= 6 samples for confidence interval at level 0.95
│ benchstat-old.txt │
│ allocs/op │
Verse-4 382.0 ± ∞ ¹
Song-4 391.0 ± ∞ ¹
geomean 386.5
¹ need >= 6 samples for confidence interval at level 0.95
real 0m0.002s
user 0m0.000s
sys 0m0.002s
===============================================================================
gomarkdoc --output house-doc.md
real 0m0.009s
user 0m0.005s
sys 0m0.004s
===============================================================================
go doc -all house
package house // import "house"
Package house generates the nursery rhyme "This is the House that Jack Built".
FUNCTIONS
func Song() string
Song returns the whole nursery rhyme.
func Verse(level int) string
Verse returns a specific verse from the nursery rhyme.
real 0m0.037s
user 0m0.025s
sys 0m0.032s
===============================================================================