Skip to content
프로젝트

소개

100개 이상의 프로그래밍 언어로 소수 관련 프로젝트를 구현해 실행 속도와 프로그래머의 기지를 비교합니다.

프로그래밍 언어 및 런타임

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+3
in 15 days
+2
in 1 month
+4

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Primes | A Software Drag Race

example workflow

Source code to Dave's Garage videos benchmarking the same prime number sieve in a selection of 100+ programming languages, as featured in this project repository.

The first video brought many visitors and contributors here initially, so we're linking to it for convenience:

Software Drag Racing | Dave's Garage

Background

This project was an unplanned spin-off from the video linked to above, in which Dave drag-races three programming languages (C#, C++ and Python) to compare their relative speeds, using the Sieve of Eratosthenes algorithm to identify prime number up to a certain limit.

He posted the source code of his implementations online (in the first incarnation of this repo, in fact), after which many, many people engaged with the idea and started opening PRs to add alternative implementations - whether in approach and/or language - to the collection. As Dave has a YouTube channel to run, he decided to seek help with managing this.

Status

Since the second quarter of 2021, the Primes project has been owned and managed by its current maintainers, Rutger van Bergen and Tudor Marghidanu.

We now have more than 100 distinct programming languages in the collection - and more if meaningful variations are considered -, tooling to execute automated builds and (daily) benchmarks, and an in-browser app to explore the results thereof.

Community contributions

Community contributions, fixes and improvements are accepted. If you want to add your own solution, please read CONTRIBUTING.md.

Running the benchmarks

The vast majority of solutions in this repository can be built and run with one Makefile. This is described in BENCHMARK.md.

Viewing benchmark results

The PrimeView web application can be used to view, filter and sort results generated by a number of benchmark machines provided by Dave and the maintainers.

Note that any feedback, suggestions, PRs concerning PrimeView need to be made on the application's own repository.

관련 프로젝트 살펴보기

불러오는 중…