File tree 2 files changed +27
-1
lines changed
2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ From time to time I ask myself which of these ways is the fastest.
5
5
In Golang there is a wonderful solution, with ` go test -bench ` you can measure the speed very easily and quickly.
6
6
In order for you to benefit from it too, I will publish such benchmarks in this repository in the future.
7
7
8
+ ## ToC
9
+
10
+ * [ base64] ( https://github.com/SimonWaldherr/golang-benchmarks#base64 )
11
+ * [ between] ( https://github.com/SimonWaldherr/golang-benchmarks#between )
12
+ * [ concat] ( https://github.com/SimonWaldherr/golang-benchmarks#concat )
13
+ * [ contains] ( https://github.com/SimonWaldherr/golang-benchmarks#contains )
14
+ * [ foreach] ( https://github.com/SimonWaldherr/golang-benchmarks#foreach )
15
+ * [ hash] ( https://github.com/SimonWaldherr/golang-benchmarks#hash )
16
+ * [ index] ( https://github.com/SimonWaldherr/golang-benchmarks#index )
17
+ * [ parse] ( https://github.com/SimonWaldherr/golang-benchmarks#parse )
18
+ * [ random] ( https://github.com/SimonWaldherr/golang-benchmarks#random )
19
+ * [ regexp] ( https://github.com/SimonWaldherr/golang-benchmarks#regexp )
20
+
8
21
## Golang?
9
22
10
23
I published another repository where I show some Golang examples.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ declare -a benchs=(base64 between concat contains foreach hash index parse random regexp)
4
+
3
5
cat > README.md << - EOM
4
6
# Go Benchmarks
5
7
@@ -8,6 +10,17 @@ From time to time I ask myself which of these ways is the fastest.
8
10
In Golang there is a wonderful solution, with \` go test -bench\` you can measure the speed very easily and quickly.
9
11
In order for you to benefit from it too, I will publish such benchmarks in this repository in the future.
10
12
13
+ ## ToC
14
+
15
+ EOM
16
+
17
+ for i in " ${benchs[@]} "
18
+ do
19
+ echo " * [$i ](https://github.com/SimonWaldherr/golang-benchmarks#$i )" >> README.md
20
+ done
21
+
22
+ cat >> README.md << - EOM
23
+
11
24
## Golang?
12
25
13
26
I published another repository where I show some Golang examples.
29
42
30
43
go fmt ./...
31
44
32
- declare -a benchs=(base64 between concat contains foreach hash index parse random regexp)
45
+
33
46
34
47
for i in " ${benchs[@]} "
35
48
do
You can’t perform that action at this time.
0 commit comments