https://github.com/ceedubs/scodec-benchmarks
https://github.com/ceedubs/scodec-benchmarks
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ceedubs/scodec-benchmarks
- Owner: ceedubs
- Created: 2015-04-30T01:43:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-13T18:05:01.000Z (almost 11 years ago)
- Last Synced: 2025-01-03T22:51:46.633Z (over 1 year ago)
- Language: Scala
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scodec benchmarks
## Results on my laptop
### FooBenchmark (1.6.0)
[Source](https://github.com/ceedubs/scodec-benchmarks/blob/b01482bf390fc271efc3c5e8ad35ff08045ab02b/src/main/scala/FooBenchmark.scala)
Scodec version: 1.6.0 (scodec-bits 1.0.6)
Scala version: 2.10.4
Mode: avgt
Cnt: 200
Units: microseconds/op (lower is better)
| Benchmark | Score | Error |
| ------------------------ | ---------:| --------:|
| FooBenchmark.decode | 21.179 | ± 0.059 |
| FooBenchmark.encode | 10.780 | ± 0.035 |
| FooBenchmark.toBase64 | 20590.997 | ± 55.067 |
| FooBenchmark.toByteArray | 115.872 | ± 0.683 |
### FooBenchmark (1.7.1)
[Source](https://github.com/ceedubs/scodec-benchmarks/blob/293212e3f0f17ac5e493d743f2044d4120a2bd13/src/main/scala/FooBenchmark.scala)
Scodec version: 1.7.1
Scala version: 2.10.5
Mode: avgt
Cnt: 200
Units: microseconds/op (lower is better)
| Benchmark | Score | Error |
| ------------------------ | ---------:| --------:|
| FooBenchmark.decode | 20.901 | ± 0.055 |
| FooBenchmark.encode | 10.737 | ± 0.022 |
| FooBenchmark.toBase64 | 20566.721 | ± 66.604 |
| FooBenchmark.toByteArray | 119.997 | ± 0.370 |