Skip to content

Commit

Permalink
Benchmark improve syntax (#13)
Browse files Browse the repository at this point in the history
* Add benchmark results

* Start add leibniz part + programming language benchmark

* Add 1brc benchmark

* Fix typos

* Add todo

* Review comments

* Add citation

* Fix comments

* Clean benchmark results
  • Loading branch information
samuel-schlaeppy authored May 23, 2024
1 parent 3e39115 commit 8d75176
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/build-system.org
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#+HTML_MATHJAX: align: left indent: 5em tagside: left

* Compilation - build system
** TODO Comptime

** TODO How to use the build system

** Build modes
Expand Down Expand Up @@ -646,14 +644,14 @@ Input: 2000
*** Results
We can see that execution times vary greatly depending on the programming language, the implementation, the target, and finally, the compiler used.
In addition, we found that Zig codes that use vectors perform better than those that do not.
On the other hand, Zig codes that are not optimised tend to perform less well than C codes.
Zig codes that are not optimised tend to perform less well than C codes.

On the other hand, we can see that Zig codes consume less memory than C codes.
For the comparison, to be fair, the allocator used in Zig is the libC allocator.
And finally, we can see that the performances depend also on the input.

We can't say that one language is faster than the other, as this will depend enormously on the context, the optimisations used, and the complexity of the code.
On the other hand, we can make a hypothesis based on the measurements taken: if dynamic memory allocation is performed correctly, we can expect Zig code to generally consume less memory than C code.
We can make a hypothesis based on the measurements taken: if dynamic memory allocation is performed correctly, we can expect Zig code to generally consume less memory than C code.

As a reminder, the results obtained are specific to the machine and operating system used.
In addition, we can compare the differences in performance between the benchmarks obtained on a local machine and the machine used by the [[https://github.com/hanabi1224/Programming-Language-Benchmarks][Programming Language Benchmark]] site.
Expand Down Expand Up @@ -790,4 +788,4 @@ For the second implementation of the Zig code, we note that it has been implemen
This merge is performed because there are several threads processing the data.
However, it also uses the same hashmap as the one used in the first version.

#+INCLUDE: "./zig-package-manager.org" :minlevel 2
#+INCLUDE: "./zig-package-manager.org" :minlevel 2

0 comments on commit 8d75176

Please sign in to comment.