Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As I started learning the scopes language and since it stated "performance of C", I wanted to check by myself. Adaptating the sudoku solver benchmark was a way of doing both learning and checking. Performance is indeed pretty good.
$ clang sudoku_v1.c -O3 -fomit-frame-pointer -o sudoku_v1.clang.exe
$ gcc sudoku_v1.c -O3 -fomit-frame-pointer -o sudoku_v1.gcc.exe
$ scopes sudoku_v1.sc && gcc sudoku_v1.sc.o sudoku_v1.sc.c.o -o sudoku_v1.sc.exe
$ time ./sudoku_v1.clang.exe < sudoku.top5k >/dev/null
real 0m2,017s
user 0m0,000s
sys 0m0,015s
$ time ./sudoku_v1.gcc.exe < sudoku.top5k >/dev/null
real 0m2,093s
user 0m0,000s
sys 0m0,015s
$ time ./sudoku_v1.sc.exe < sudoku.top5k >/dev/null
real 0m2,742s
user 0m0,000s
sys 0m0,015s
Intel Core i7-3520M @ 2.9Ghz, 8GB RAM, Windows 10, mingw64