1
- # swift-base64
1
+ # swift-base64-kit
2
2
3
3
[ ![ Swift 5.1] ( https://img.shields.io/badge/Swift-5.1-blue.svg )] ( https://swift.org/download/ )
4
- [ ![ github-actions] ( https://github.com/fabianfett/swift-base64/workflows/CI/badge.svg )] ( https://github.com/fabianfett/swift-base64/actions )
5
- [ ![ codecov] ( https://codecov.io/gh/fabianfett/swift-base64/branch/master/graph/badge.svg )] ( https://codecov.io/gh/fabianfett/swift-base64 )
4
+ [ ![ github-actions] ( https://github.com/fabianfett/swift-base64-kit /workflows/CI/badge.svg )] ( https://github.com/fabianfett/swift-base64/actions )
5
+ [ ![ codecov] ( https://codecov.io/gh/fabianfett/swift-base64-kit /branch/master/graph/badge.svg )] ( https://codecov.io/gh/fabianfett/swift-base64 )
6
6
![ macOS] ( https://img.shields.io/badge/os-macOS-green.svg?style=flat )
7
7
![ tuxOS] ( https://img.shields.io/badge/os-tuxOS-green.svg?style=flat )
8
8
@@ -23,7 +23,7 @@ Everything began with [an issue](https://github.com/apple/swift-nio/issues/1265)
23
23
24
24
## Performance
25
25
26
- Super [ simple performance test] ( https://github.com/fabianfett/swift-base64/blob/master/Sources/Base64PerformanceTest /main.swift )
26
+ Super [ simple performance test] ( https://github.com/fabianfett/swift-base64-kit /blob/master/Sources/Base64KitPerformanceTest /main.swift )
27
27
to ensure speediness of this implementation. Encoding and decoding 1m times the base64 string:
28
28
29
29
```
@@ -38,7 +38,7 @@ Quad Core 2,7 GHz Intel Core i7
38
38
| | Encoding | Decoding |
39
39
| :--| :--| :--|
40
40
| Foundation | 2.21s | 2.28s |
41
- | swift-base64 | 1.01s | 1.06s |
41
+ | swift-base64-kit | 1.01s | 1.06s |
42
42
| Speedup | 2.18x | 2.14x |
43
43
44
44
#### linux
@@ -48,7 +48,7 @@ Whatevar runs GitHub Actions 😉
48
48
| | Encoding | Decoding |
49
49
| :--| :--| :--|
50
50
| Foundation | 33.64s | 3.49s |
51
- | swift-base64 | 1.07s | 1.27s |
51
+ | swift-base64-kit | 1.07s | 1.27s |
52
52
| Speedup | ** 31.18x** | 2.74x |
53
53
54
54
I have no idea why Foundation base64 encoding is so slow on linux. 🤷♂️
0 commit comments