nativepluck 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +38 -75
- data/lib/nativepluck/version.rb +1 -1
- metadata +1 -2
- data/Rakefile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f1725dab8cb0df803da1644c6b1f3c7121b07dda79db810812ead5dc6227c66
|
4
|
+
data.tar.gz: 5008c672d4879c021ff12b7cf3620f73b07fb4b72639119032e808a9db2408a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4315946fbd46106929b767b97878334c302ae71c5eaa37d99f28f1aa3c84e88cb98f65fafd4d3f01dec8363efa36933d05b793b67921ab386f3fd070b42bf5c9
|
7
|
+
data.tar.gz: 870b97217c6f66684862e9d5b197f44c1856e8a640af462d324b71a25e184eb150c1a8d26b5123bbe663ad99a81bc71c9f9a2a787a4df0681c57b865331d6424
|
data/README.md
CHANGED
@@ -81,7 +81,7 @@ nativepluck | updated_at | 1020 | 1001
|
|
81
81
|
nativepluck_raw_to_sql | updated_at | 1068 | 1005
|
82
82
|
nativepluck_raw_string | updated_at | 1007 | 1001
|
83
83
|
|
84
|
-
### Allocated
|
84
|
+
### Allocated Memory by Class Benchmark
|
85
85
|
|
86
86
|
Class| Attribute Name| pluck| nativepluck| nativepluck_raw_to_sql| nativepluck_raw_string
|
87
87
|
-----|---------------|------|------------|-----------------------|-----------------------
|
@@ -298,7 +298,7 @@ Arel::Collectors::SubstituteBinds| jsonb_col|0|0|40|0
|
|
298
298
|
Arel::Collectors::SubstituteBinds| created_at|0|0|40|0
|
299
299
|
Arel::Collectors::SubstituteBinds| updated_at|0|0|40|0
|
300
300
|
|
301
|
-
### Allocated Objects by
|
301
|
+
### Allocated Objects by Class Benchmark
|
302
302
|
|
303
303
|
Class| Attribute Name| pluck| nativepluck| nativepluck_raw_to_sql| nativepluck_raw_string
|
304
304
|
-----|---------------|------|------------|-----------------------|-----------------------
|
@@ -524,79 +524,42 @@ To run the benchmarks use:
|
|
524
524
|
|
525
525
|
Method | Row Number | Column Name | Results
|
526
526
|
------------------|------------|----------------|---------------------------------------------------------------
|
527
|
-
|
528
|
-
|
529
|
-
nativepluck_raw :to_sql | 1000 | id
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
nativepluck_raw :to_sql | 1000 |
|
534
|
-
pluck | 1000 |
|
535
|
-
|
536
|
-
|
537
|
-
nativepluck_raw :to_sql | 1000 |
|
538
|
-
|
539
|
-
nativepluck_raw SQL_RAW | 1000 |
|
540
|
-
|
541
|
-
|
542
|
-
pluck | 1000 |
|
543
|
-
|
544
|
-
|
545
|
-
nativepluck_raw
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
nativepluck_raw :to_sql | 1000 |
|
550
|
-
pluck | 1000 |
|
551
|
-
|
552
|
-
|
553
|
-
nativepluck_raw :to_sql | 1000 |
|
554
|
-
|
555
|
-
nativepluck_raw SQL_RAW | 1000 |
|
556
|
-
|
557
|
-
|
558
|
-
pluck | 1000 |
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
nativepluck | 1000 | float_col: | 666.5 i/s
|
564
|
-
nativepluck_raw :to_sql | 1000 | float_col: | 524.6 i/s - 1.27x slower
|
565
|
-
nativepluck_raw SQL_RAW | 1000 | float_col: | 420.4 i/s - 1.59x slower
|
566
|
-
pluck | 1000 | float_col: | 374.3 i/s - 1.78x slower
|
567
|
-
pluck | 1000 | json_col | 80.572 (±24.8%) i/s - 369.000 in 5.000541s
|
568
|
-
nativepluck | 1000 | json_col | 108.713 (± 5.5%) i/s - 549.000 in 5.064493s
|
569
|
-
nativepluck_raw :to_sql | 1000 | json_col | 106.966 (± 7.5%) i/s - 535.000 in 5.038752s
|
570
|
-
nativepluck_raw SQL_RAW | 1000 | json_col | 111.460 (± 6.3%) i/s - 556.000 in 5.008867s
|
571
|
-
nativepluck_raw SQL_RAW | 1000 | json_col: | 111.5 i/s
|
572
|
-
nativepluck | 1000 | json_col: | 108.7 i/s - same-ish: difference falls within error
|
573
|
-
nativepluck_raw :to_sql | 1000 | json_col: | 107.0 i/s - same-ish: difference falls within error
|
574
|
-
pluck | 1000 | json_col: | 80.6 i/s - 1.38x slower
|
575
|
-
pluck | 1000 | jsonb_col | 90.935 (± 5.5%) i/s - 459.000 in 5.065060s
|
576
|
-
nativepluck | 1000 | jsonb_col | 102.772 (± 4.9%) i/s - 520.000 in 5.069177s
|
577
|
-
nativepluck_raw :to_sql | 1000 | jsonb_col | 100.030 (± 5.0%) i/s - 500.000 in 5.012083s
|
578
|
-
nativepluck_raw SQL_RAW | 1000 | jsonb_col | 102.059 (± 5.9%) i/s - 510.000 in 5.017367s
|
579
|
-
nativepluck | 1000 | jsonb_col: | 102.8 i/s
|
580
|
-
nativepluck_raw SQL_RAW | 1000 | jsonb_col: | 102.1 i/s - same-ish: difference falls within error
|
581
|
-
nativepluck_raw :to_sql | 1000 | jsonb_col: | 100.0 i/s - same-ish: difference falls within error
|
582
|
-
pluck | 1000 | jsonb_col: | 90.9 i/s - 1.13x slower
|
583
|
-
pluck | 1000 | created_at | 45.932 (± 4.4%) i/s - 232.000 in 5.056838s
|
584
|
-
nativepluck | 1000 | created_at | 196.429 (± 2.5%) i/s - 988.000 in 5.033270s
|
585
|
-
nativepluck_raw :to_sql | 1000 | created_at | 187.641 (± 4.8%) i/s - 950.000 in 5.077301s
|
586
|
-
nativepluck_raw SQL_RAW | 1000 | created_at | 199.361 (± 3.0%) i/s - 1.007k in 5.055300s
|
587
|
-
nativepluck_raw SQL_RAW | 1000 | created_at: | 199.4 i/s
|
588
|
-
nativepluck | 1000 | created_at: | 196.4 i/s - same-ish: difference falls within error
|
589
|
-
nativepluck_raw :to_sql | 1000 | created_at: | 187.6 i/s - same-ish: difference falls within error
|
590
|
-
pluck | 1000 | created_at: | 45.9 i/s - 4.34x slower
|
591
|
-
pluck | 1000 | updated_at | 40.874 (±22.0%) i/s - 184.000 in 5.024964s
|
592
|
-
nativepluck | 1000 | updated_at | 193.426 (±17.6%) i/s - 920.000 in 5.063586s
|
593
|
-
nativepluck_raw :to_sql | 1000 | updated_at | 197.212 (± 7.6%) i/s - 988.000 in 5.040263s
|
594
|
-
nativepluck_raw SQL_RAW | 1000 | updated_at | 204.420 (± 5.9%) i/s - 1.020k in 5.007479s
|
595
|
-
nativepluck_raw SQL_RAW | 1000 | updated_at: | 204.4 i/s
|
596
|
-
nativepluck_raw :to_sql | 1000 | updated_at: | 197.2 i/s - same-ish: difference falls within error
|
597
|
-
nativepluck | 1000 | updated_at: | 193.4 i/s - same-ish: difference falls within error
|
598
|
-
pluck | 1000 | updated_at: | 40.9 i/s - 5.00x slower
|
599
|
-
|
527
|
+
nativepluck | 1000 | id | 1660.5 i/s
|
528
|
+
nativepluck_raw SQL_RAW | 1000 | id | 1516.2 i/s - same-ish: difference falls within error
|
529
|
+
nativepluck_raw :to_sql | 1000 | id | 1139.7 i/s - same-ish: difference falls within error
|
530
|
+
pluck | 1000 | id | 734.2 i/s - 2.26x slower
|
531
|
+
nativepluck_raw SQL_RAW | 1000 | integer_col | 1515.4 i/s
|
532
|
+
nativepluck | 1000 | integer_col | 1388.6 i/s - same-ish: difference falls within error
|
533
|
+
nativepluck_raw :to_sql | 1000 | integer_col | 1152.5 i/s - same-ish: difference falls within error
|
534
|
+
pluck | 1000 | integer_col | 594.9 i/s - 2.55x slower
|
535
|
+
nativepluck | 1000 | string_col | 1317.6 i/s
|
536
|
+
nativepluck_raw SQL_RAW | 1000 | string_col | 1103.6 i/s - same-ish: difference falls within error
|
537
|
+
nativepluck_raw :to_sql | 1000 | string_col | 980.7 i/s - same-ish: difference falls within error
|
538
|
+
pluck | 1000 | string_col | 454.9 i/s - 2.90x slower
|
539
|
+
nativepluck_raw SQL_RAW | 1000 | datetime_col | 217.4 i/s
|
540
|
+
nativepluck_raw :to_sql | 1000 | datetime_col | 210.5 i/s - same-ish: difference falls within error
|
541
|
+
nativepluck | 1000 | datetime_col | 168.6 i/s - same-ish: difference falls within error
|
542
|
+
pluck | 1000 | datetime_col | 42.6 i/s - 5.10x slower
|
543
|
+
nativepluck | 1000 | float_col | 666.5 i/s
|
544
|
+
nativepluck_raw :to_sql | 1000 | float_col | 524.6 i/s - 1.27x slower
|
545
|
+
nativepluck_raw SQL_RAW | 1000 | float_col | 420.4 i/s - 1.59x slower
|
546
|
+
pluck | 1000 | float_col | 374.3 i/s - 1.78x slower
|
547
|
+
nativepluck_raw SQL_RAW | 1000 | json_col | 111.5 i/s
|
548
|
+
nativepluck | 1000 | json_col | 108.7 i/s - same-ish: difference falls within error
|
549
|
+
nativepluck_raw :to_sql | 1000 | json_col | 107.0 i/s - same-ish: difference falls within error
|
550
|
+
pluck | 1000 | json_col | 80.6 i/s - 1.38x slower
|
551
|
+
nativepluck | 1000 | jsonb_col | 102.8 i/s
|
552
|
+
nativepluck_raw SQL_RAW | 1000 | jsonb_col | 102.1 i/s - same-ish: difference falls within error
|
553
|
+
nativepluck_raw :to_sql | 1000 | jsonb_col | 100.0 i/s - same-ish: difference falls within error
|
554
|
+
pluck | 1000 | jsonb_col | 90.9 i/s - 1.13x slower
|
555
|
+
nativepluck_raw SQL_RAW | 1000 | created_at | 199.4 i/s
|
556
|
+
nativepluck | 1000 | created_at | 196.4 i/s - same-ish: difference falls within error
|
557
|
+
nativepluck_raw :to_sql | 1000 | created_at | 187.6 i/s - same-ish: difference falls within error
|
558
|
+
pluck | 1000 | created_at | 45.9 i/s - 4.34x slower
|
559
|
+
nativepluck_raw SQL_RAW | 1000 | updated_at | 204.4 i/s
|
560
|
+
nativepluck_raw :to_sql | 1000 | updated_at | 197.2 i/s - same-ish: difference falls within error
|
561
|
+
nativepluck | 1000 | updated_at | 193.4 i/s - same-ish: difference falls within error
|
562
|
+
pluck | 1000 | updated_at | 40.9 i/s - 5.00x slower
|
600
563
|
|
601
564
|
## License
|
602
565
|
|
data/lib/nativepluck/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nativepluck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ohad Dahan
|
@@ -48,7 +48,6 @@ extra_rdoc_files: []
|
|
48
48
|
files:
|
49
49
|
- LICENSE
|
50
50
|
- README.md
|
51
|
-
- Rakefile
|
52
51
|
- lib/nativepluck.rb
|
53
52
|
- lib/nativepluck/version.rb
|
54
53
|
homepage: https://gitlab.com/Nativepluck/nativepluck
|