d_heap 0.2.0 → 0.5.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 +59 -0
- data/Gemfile +10 -2
- data/Gemfile.lock +42 -5
- data/README.md +392 -109
- data/Rakefile +8 -2
- data/benchmarks/perf.rb +29 -0
- data/benchmarks/push_n.yml +31 -0
- data/benchmarks/push_n_pop_n.yml +35 -0
- data/benchmarks/push_pop.yml +27 -0
- data/benchmarks/stackprof.rb +31 -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 +75 -0
- data/docs/benchmarks-mem.txt +39 -0
- data/docs/benchmarks.txt +515 -0
- data/docs/profile.txt +392 -0
- data/ext/d_heap/d_heap.c +555 -225
- data/ext/d_heap/d_heap.h +24 -48
- data/ext/d_heap/extconf.rb +20 -0
- data/lib/benchmark_driver/runner/ips_zero_fail.rb +120 -0
- data/lib/d_heap.rb +40 -2
- data/lib/d_heap/benchmarks.rb +112 -0
- data/lib/d_heap/benchmarks/benchmarker.rb +116 -0
- data/lib/d_heap/benchmarks/implementations.rb +222 -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 +54 -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.5.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-17 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,47 @@ 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/perf.rb
|
64
|
+
- benchmarks/push_n.yml
|
65
|
+
- benchmarks/push_n_pop_n.yml
|
66
|
+
- benchmarks/push_pop.yml
|
67
|
+
- benchmarks/stackprof.rb
|
68
|
+
- bin/bench_n
|
69
|
+
- bin/benchmark-driver
|
70
|
+
- bin/benchmarks
|
32
71
|
- bin/console
|
72
|
+
- bin/profile
|
33
73
|
- bin/rake
|
34
74
|
- bin/rspec
|
75
|
+
- bin/rubocop
|
35
76
|
- bin/setup
|
36
77
|
- d_heap.gemspec
|
78
|
+
- docs/benchmarks-2.txt
|
79
|
+
- docs/benchmarks-mem.txt
|
80
|
+
- docs/benchmarks.txt
|
81
|
+
- docs/profile.txt
|
37
82
|
- ext/d_heap/d_heap.c
|
38
83
|
- ext/d_heap/d_heap.h
|
39
84
|
- ext/d_heap/extconf.rb
|
85
|
+
- lib/benchmark_driver/runner/ips_zero_fail.rb
|
40
86
|
- lib/d_heap.rb
|
87
|
+
- lib/d_heap/benchmarks.rb
|
88
|
+
- lib/d_heap/benchmarks/benchmarker.rb
|
89
|
+
- lib/d_heap/benchmarks/implementations.rb
|
90
|
+
- lib/d_heap/benchmarks/profiler.rb
|
91
|
+
- lib/d_heap/benchmarks/rspec_matchers.rb
|
41
92
|
- lib/d_heap/version.rb
|
42
93
|
homepage: https://github.com/nevans/d_heap
|
43
94
|
licenses:
|