https://github.com/eliaskosunen/scnlib-spirit-benchmark
https://github.com/eliaskosunen/scnlib-spirit-benchmark
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eliaskosunen/scnlib-spirit-benchmark
- Owner: eliaskosunen
- Created: 2019-07-21T19:09:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T13:13:28.000Z (about 6 years ago)
- Last Synced: 2025-02-14T15:57:12.580Z (8 months ago)
- Language: C++
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scnlib-spirit-benchmark
Benchmarking [scnlib](https://github.com/eliaskosunen/scnlib) against Boost.Spirit x3,
as prompted by [issue #9](https://github.com/eliaskosunen/scnlib/issues/9).## Results
### Reading a single integer
spirit::x3 | `scn::scan` | `scn::parse_integer` | `` | `sscanf`
---------: | ----------: | -------------------: | -----------: | -------:
14 | 44 | 18 | 261 | 94### Reading a list of whitespace-separated integers
List length | spirit::x3 | scnlib | scnlib (naive) | ``
:---------- | ---------: | -----: | -------------: | -----------:
16 | 905 | 1432 | 1447 | 1901
64 | 1732 | 3784 | 3826 | 5465
256 | 4950 | 12888 | 13101 | 19438### Reading a list of comma-separated integers
List length | spirit::x3 | scnlib | scnlib (naive) | ``
:---------- | ---------: | -----: | -------------: | -----------:
16 | 940 | 1418 | 1486 | 2026
64 | 1785 | 3780 | 4022 | 5917
256 | 5026 | 12993 | 13882 | 21295