Developer tools

Small free tools for everyday development: format JSON and SQL, encode Base64 and URLs, generate GUIDs, convert timestamps and test regular expressions.

Performance puzzles

Each puzzle really runs: guess which version is fastest, then the versions are timed where the page runs. The numbers differ between machines; the order is the lesson.

Look up 800 values in a collection of 20000 numbers. Which collection is fastest to search?

List<int>.Contains

var list = data.ToList();
foreach (var p in probes) if (list.Contains(p)) hits++;

HashSet<int>.Contains

var set = data.ToHashSet();
foreach (var p in probes) if (set.Contains(p)) hits++;

Enumerable.Any with a lambda

foreach (var p in probes) if (data.Any(x => x == p)) hits++;

Everything runs in your browser or on this site's server only for display; nothing you enter is stored.

← Software

↑ ↓ to choose, Enter to open, Esc to close

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.