d_heap 0.1.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +26 -0
- data/.rubocop.yml +199 -0
- data/CHANGELOG.md +42 -0
- data/Gemfile +6 -2
- data/Gemfile.lock +36 -5
- data/README.md +394 -76
- data/Rakefile +8 -2
- data/benchmarks/push_n.yml +28 -0
- data/benchmarks/push_n_pop_n.yml +31 -0
- data/benchmarks/push_pop.yml +24 -0
- data/bin/bench_n +7 -0
- data/bin/benchmark-driver +29 -0
- data/bin/benchmarks +10 -0
- data/bin/console +1 -0
- data/bin/profile +10 -0
- data/bin/rubocop +29 -0
- data/d_heap.gemspec +11 -6
- data/docs/benchmarks-2.txt +52 -0
- data/docs/benchmarks.txt +443 -0
- data/docs/profile.txt +392 -0
- data/ext/d_heap/d_heap.c +677 -134
- data/ext/d_heap/d_heap.h +29 -18
- data/ext/d_heap/extconf.rb +13 -0
- data/lib/benchmark_driver/runner/ips_zero_fail.rb +120 -0
- data/lib/d_heap.rb +17 -31
- data/lib/d_heap/benchmarks.rb +111 -0
- data/lib/d_heap/benchmarks/benchmarker.rb +113 -0
- data/lib/d_heap/benchmarks/implementations.rb +168 -0
- data/lib/d_heap/benchmarks/profiler.rb +71 -0
- data/lib/d_heap/benchmarks/rspec_matchers.rb +374 -0
- data/lib/d_heap/version.rb +4 -1
- metadata +51 -3
data/lib/d_heap/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: d_heap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nicholas a. evans
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: benchmark_driver
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ruby-prof
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
13
41
|
description: |
|
14
42
|
A C extension implementation of a d-ary heap data structure, suitable for
|
15
43
|
use in e.g. priority queues or Djikstra's algorithm.
|
@@ -20,24 +48,44 @@ extensions:
|
|
20
48
|
- ext/d_heap/extconf.rb
|
21
49
|
extra_rdoc_files: []
|
22
50
|
files:
|
51
|
+
- ".github/workflows/main.yml"
|
23
52
|
- ".gitignore"
|
24
53
|
- ".rspec"
|
54
|
+
- ".rubocop.yml"
|
25
55
|
- ".travis.yml"
|
56
|
+
- CHANGELOG.md
|
26
57
|
- CODE_OF_CONDUCT.md
|
27
58
|
- Gemfile
|
28
59
|
- Gemfile.lock
|
29
60
|
- LICENSE.txt
|
30
61
|
- README.md
|
31
62
|
- Rakefile
|
63
|
+
- benchmarks/push_n.yml
|
64
|
+
- benchmarks/push_n_pop_n.yml
|
65
|
+
- benchmarks/push_pop.yml
|
66
|
+
- bin/bench_n
|
67
|
+
- bin/benchmark-driver
|
68
|
+
- bin/benchmarks
|
32
69
|
- bin/console
|
70
|
+
- bin/profile
|
33
71
|
- bin/rake
|
34
72
|
- bin/rspec
|
73
|
+
- bin/rubocop
|
35
74
|
- bin/setup
|
36
75
|
- d_heap.gemspec
|
76
|
+
- docs/benchmarks-2.txt
|
77
|
+
- docs/benchmarks.txt
|
78
|
+
- docs/profile.txt
|
37
79
|
- ext/d_heap/d_heap.c
|
38
80
|
- ext/d_heap/d_heap.h
|
39
81
|
- ext/d_heap/extconf.rb
|
82
|
+
- lib/benchmark_driver/runner/ips_zero_fail.rb
|
40
83
|
- lib/d_heap.rb
|
84
|
+
- lib/d_heap/benchmarks.rb
|
85
|
+
- lib/d_heap/benchmarks/benchmarker.rb
|
86
|
+
- lib/d_heap/benchmarks/implementations.rb
|
87
|
+
- lib/d_heap/benchmarks/profiler.rb
|
88
|
+
- lib/d_heap/benchmarks/rspec_matchers.rb
|
41
89
|
- lib/d_heap/version.rb
|
42
90
|
homepage: https://github.com/nevans/d_heap
|
43
91
|
licenses:
|