HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
huonw
levgen-benchmarks
Rust2013–2013
huonw / levgen-benchmarks

levgen-benchmarks

Crude random level generation benchmarks of C, Go, D and Rust.

2Distinct people
2Mentions
0Explicit recommenders
1GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Crude random level generation benchmarks of C, Go, D and Rust.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2013-07-24 08:33:03 UTC to 2013-07-24 09:13:44 UTC.

012013-07-24 08:00:00 UTC to 2013-07-24 09:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 24, 08:002013-07-24 09:00:00 UTC to 2013-07-24 10:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 24, 09:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jul 24, 08:002013-07-24 08:00:00 UTC2013-07-24 09:00:00 UTC101
Jul 24, 09:002013-07-24 09:00:00 UTC2013-07-24 10:00:00 UTC101

What Hacker News says

2 sources
The Rust code was very non-idiomatic, and is dramatically disadvantaged by using the ISAAC random number generator (which is cryptographically secure, and so quite slow). By rewriting it to use more iterators (for non-bounds checked vector access), more vector-building functions (specifically, `vec::with_capacity` and `vec::from_fn`), and a non-cryptographically secure RNG[1], I get the following: Rust 0.34 Rust isaac 0.57 Rust orig 0.70 Clang 0.42 GCC 0.36 My rewritten version: https://github.com/huonw/levgen-benchmarks/blob/master/R.rs (I didn't bother implementing seeding of the RNG for this, so it's the same result every time. Edit: implemented now, no performance change.) [1]: The new RNG is XorShiftRng, which is also in the standard library, and actually has far better randomness properties than most pl
Read the rest
atforms' `rand()` functions anyway. (Edit: merging two adjacent `if` statements, took it down to 0.34 from 0.36.)
In Benchmarking level generation: Go, Rust, Haskell and D

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.