-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27aa45b
commit 401a5aa
Showing
49 changed files
with
7,319 additions
and
6,167 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: String Concatination | ||
headline: A benchmark to compare the performance of different string concatination implementations in Go. | ||
description: > | ||
The classic string concatination is done by using the `+` operator. | ||
This implementation works fine in the most cases, but it has some drawbacks. | ||
One of them is that it is not very fast. | ||
A solution is to use the `strings.Builder` or `buffer.Bytes` type. | ||
This benchmark shows which implementation is the fastest, in which use-case. | ||
tags: | ||
- string | ||
- concatination | ||
- append | ||
|
||
contributors: | ||
- MarvinJWendt | ||
|
||
meta: | ||
- implementation: Append To Slice And Join | ||
description: > | ||
This implementation uses the `append` function to append the strings to a slice. | ||
After that, the `strings.Join` function is used to join the strings together. | ||
- implementation: Buffer | ||
description: > | ||
This implementation uses the `bytes.Buffer` type to append the strings. | ||
After that, the `buffer.String` function is used to get the final string. | ||
- implementation: Simple Append | ||
description: > | ||
This implementation uses the `+` operator to append the strings together. | ||
- implementation: String Builder | ||
description: > | ||
This implementation uses the `strings.Builder` type to append the strings. | ||
After that, the `builder.String` function is used to get the final string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/_app/immutable/assets/0.8a39da3c.css → docs/_app/immutable/assets/0.6d75f775.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.description.svelte-8jjkd2{max-width:48rem} |
2 changes: 1 addition & 1 deletion
2
...app/immutable/assets/_layout.8a39da3c.css → ...app/immutable/assets/_layout.6d75f775.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.description.svelte-8jjkd2{max-width:48rem} |
Oops, something went wrong.