https://github.com/alveflo/gzipstreamcompression
Measurements of simple json compressions using GZipStream
https://github.com/alveflo/gzipstreamcompression
compression json measurements
Last synced: 2 months ago
JSON representation
Measurements of simple json compressions using GZipStream
- Host: GitHub
- URL: https://github.com/alveflo/gzipstreamcompression
- Owner: alveflo
- Created: 2017-12-09T22:56:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-09T23:27:33.000Z (over 8 years ago)
- Last Synced: 2025-04-06T10:49:25.475Z (over 1 year ago)
- Topics: compression, json, measurements
- Language: C#
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GZipStreamCompression
Measurements of simple json compressions using GZipStream
### Input
Given JSON as:
```JSON
[{
"FirstName": "Anakin",
"LastName": "Skywalker",
"Age": 25,
"Company": {
"Name": "The Empire",
"Address": {
"StreetAddress": "601 Death Star",
"Country": "Somewhere dark side",
"City": "Something dark side"
}
}
}]
```
### Result
| List entries | JSON size | Compressed size |
| :------------- | :------------- | :------------- |
| 1 | 204 bytes | 241 bytes |
| 10 | 2 KB | 1.1 KB |
| 100 | 19.1 KB | 7.8 KB |
| 1 000 | 190.3 KB | 63,3 KB |
| 10 000 | 1.9 MB | 628,8 KB |
| 100 000 | 18.6 MB | 6.1 MB |
| 1 000 000 | 185.9 MB | 61.3 MB |