diff options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..17b7043 --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Taming C++ | ||
| 2 | |||
| 3 | Experiments with C++ and comparisons with C. | ||
| 4 | |||
| 5 | ## sort-benchmark | ||
| 6 | |||
| 7 | Inspired by [Bert's post](https://berthub.eu/articles/posts/c++-1). | ||
| 8 | |||
| 9 | Sorting an array of integers is a simple task, so C and C++ should perform | ||
| 10 | similarly, right? Wrong! | ||
| 11 | |||
| 12 | ``` | ||
| 13 | C time for 100000000 numbers: 9.886314s | ||
| 14 | C++ time for 100000000 numbers: 4.92299s | ||
| 15 | C++ time for 100000000 numbers (parallel): 0.495435s | ||
| 16 | ``` | ||
| 17 | |||
| 18 | A similar benchmark is provided for sorting an arrays of pairs in a | ||
| 19 | non-standard way. | ||
