Skip to content

Simple Roguelike level generation benchmark of Rust, C, D, Go and more.

Notifications You must be signed in to change notification settings

rgwilton/Levgen-Parallel-Benchmarks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Levgen-Parallel-Benchmarks

Simple parallel Roguelike level generation benchmark of Rust, C, D, Go and more. Speed will be measured and compared both between implementations and between them and their non-parallel equivalents, as will standard lines of code (sloc as defined by Github).

Rust is compiled with --opt-level=3

C is compiled with -O3 -lpthread

C++ is compiled with -O3 -pthread -std=c++11

If using Clang++, C++ may need to be compiled with -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 , to avoid a bug in less-current versions of the LLVM.

D is compiled with -O -release -inline -noboundscheck

Nimrod is compiled with -d:release, and --threads:on if using the llvm one (the llvm doesn't support OpenMP).

Scala is run with target/start seed after running sbt add-start-script-tasks start-script in the scala folder.

They must be run with the seed as a command line parameter, like ./PC 123.

About

Simple Roguelike level generation benchmark of Rust, C, D, Go and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • D 24.0%
  • C++ 21.5%
  • Nim 11.3%
  • C# 11.0%
  • Scala 8.6%
  • C 6.7%
  • Other 16.9%