HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
MikeMirzayanov
binary-heap-benchmark
C#2017–2017
MikeMirzayanov / binary-heap-benchmark

binary-heap-benchmark

Collection of binary heap sort implementation for many languages, primary to compare performance between languages

3Distinct people
3Mentions
0Explicit recommenders
41GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Collection of binary heap sort implementation for many languages, primary to compare performance between languages

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 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 4:01:40 AM 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 hour3 dated mentions

Observed mentions: 2017-06-09 12:01:50 UTC to 2017-06-09 19:13:44 UTC.

012017-06-09 12:00:00 UTC to 2017-06-09 13:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 9, 12:002017-06-09 13:00:00 UTC to 2017-06-09 14:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2017-06-09 14:00:00 UTC to 2017-06-09 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-06-09 15:00:00 UTC to 2017-06-09 16:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJun 9, 15:002017-06-09 16:00:00 UTC to 2017-06-09 17:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-06-09 17:00:00 UTC to 2017-06-09 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-06-09 18:00:00 UTC to 2017-06-09 19:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-06-09 19:00:00 UTC to 2017-06-09 20:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 9, 19: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
Jun 9, 12:002017-06-09 12:00:00 UTC2017-06-09 13:00:00 UTC101
Jun 9, 13:002017-06-09 13:00:00 UTC2017-06-09 14:00:00 UTC101
Jun 9, 14:002017-06-09 14:00:00 UTC2017-06-09 15:00:00 UTC000
Jun 9, 15:002017-06-09 15:00:00 UTC2017-06-09 16:00:00 UTC000
Jun 9, 16:002017-06-09 16:00:00 UTC2017-06-09 17:00:00 UTC000
Jun 9, 17:002017-06-09 17:00:00 UTC2017-06-09 18:00:00 UTC000
Jun 9, 18:002017-06-09 18:00:00 UTC2017-06-09 19:00:00 UTC000
Jun 9, 19:002017-06-09 19:00:00 UTC2017-06-09 20:00:00 UTC101

What Hacker News says

1 sources
If your code looks like this: https://github.com/MikeMirzayanov/binary-heap-benchmark/blob... Then you probably should not use Python, python is more of a glue language which you should strive to make your program looking like a business logic, in real word to solve this problem you would write code such as this: import time if __name__ == "__main__": start = time.clock() N = 10000000 h = list(range(N)) h.sort() for i, v in enumerate(h): assert(i == v) print("Done in %f" % ((time.clock() - start) * 1000)) $ python3.6 heap.py Done in 2389.877000 Or if heap needs to be used: import time from heapq import heapify, heappop if __name__ == "__main__": start = time.clock() N = 10000000 h = list(range(N)) heapify(h)
Read the rest
for i in range(len(h)): assert(i == heappop(h)) print("Done in %f" % ((time.clock() - start) * 1000)) $ python3.6 heap.py Done in 10716.348000 Micro benchmarks are silly because you'll never do those things in real code.
In PyPy v5.8 released

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.