Skip to content

Hi02hi/Another-Benchmarks-Game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bench MIT License

Yet another implementation of The Computer Language Benchmarks Game, Visit HERE

Why Build This

The idea is to build an automatic process for benchmark generation and pulishing

Comparable numbers

It currently use CI to generate benchmark results to garantee all the numbers are generated from the same environment at nearly the same time. All benchmark tests run in sequence within a single CI job

Automatic publish

Once a change is merged into main branch, the CI job will re-generate and publish the static website

Build

To achieve better SEO, the published site is static and prerenderd, powered by nuxt.js.

Host

The website is hosted on Vercel

Development

git clone https://github.com/hanabi1224/Another-Benchmarks-Game.git

cd website
yarn
yarn generate
yarn dev

Benchmarks

All benchmarks are defined in bench.yaml

Current benchmarks problems and their implementations are from The Computer Language Benchmarks Game ( Repo)

Local development

Prerequisites

docker

net5

node LTS

yarn

Build

The 1st step is to build source code from various of lanuages

cd bench
dotnet run -p tool --task build

Test

The 2nd step is to test built binaries to ensure the correctness of their implementation

cd bench
dotnet run -p tool --task test

Bench

The 3rd step is to generate benchmarks

cd bench
dotnet run -p tool --task bench

For usage

cd bench
dotnet run -p tool --help

Referesh website

Lastly you can re-generate website with latest benchmark numbers

cd website
yarn
yarn content
yarn generate
serve dist

TODOs

Intergrate test environment info into website

Intergrate build / test / benchmark infomation into website

...

How to contribute

TODO

LICENSES

Code of problem implementation from The Computer Language Benchmarks Game is under their Revised BSD

Other code in this repo is under MIT.

About

Yet another implementation of computer language benchmarks game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 29.8%
  • Rust 9.6%
  • Java 8.8%
  • Go 8.3%
  • Dart 6.8%
  • TypeScript 5.4%
  • Other 31.3%