Commit Graph

28 Commits

Author SHA1 Message Date
Frank Taillandier 8c8326e9ab
style: enable new cops (#8538)
Merge pull request 8538
2021-01-12 18:39:41 -05:00
Ashwin Maroli 7cb10df0b8
Compute relative_path of pages using PathManager (#8408)
Merge pull request 8408
2020-09-30 02:11:28 -04:00
Ashwin Maroli 53f175516b
Implement custom delegators for drop methods (#8183)
Merge pull request 8183
2020-09-23 16:13:05 -04:00
Ashwin Maroli f2b463bb85
Optimize parsing of parameters in include tag (#8192)
Merge pull request 8192
2020-09-14 07:36:10 -04:00
Ashwin Maroli 0b2c4c9cec
Add find filters to optimize where-first chains (#8171)
Merge pull request 8171
2020-05-21 06:56:47 -04:00
Vitor Oliveira 397d289cd2 Refactoring: Fix benchmark code smell (#7211)
Merge pull request 7211
2018-09-02 14:01:11 -04:00
ashmaroli 36fbcaa863 Optimize loading library into memory (#6910)
Merge pull request 6910
2018-04-10 11:00:12 -04:00
ashmaroli 07e49f8d23 Compute document's relative_path faster (#6767)
Merge pull request 6767
2018-02-28 11:07:50 -05:00
ashmaroli 23bb50c71c Bypass rendering via Liquid unless required (#6735)
Merge pull request 6735
2018-02-28 11:06:08 -05:00
ashmaroli a5c25ada1e Replace simple regex with equivalent Ruby methods (#6736)
Merge pull request 6736
2018-02-20 09:36:34 -05:00
Parker Moore 6ce912e957 Use a Schwartzian transform with custom sorting (#6342)
Merge pull request 6342
2017-09-02 10:38:07 -04:00
XhmikosR d9cf97e9c6 Switch to `https` when possible.
Also, remove two 404 links.
2016-11-29 23:39:23 +02:00
fen 7729d12cdc include a hashbang for all benchmark scripts
this also makes every benchmark script executable
2016-10-22 03:13:30 +02:00
crisp 84c4d1998a Fix indentation 2016-07-22 01:09:21 +08:00
Parker Moore b539c32364
Add a benchmark for capture vs. assign in Liquid. [ci skip] 2016-06-21 14:20:18 -07:00
Parker Moore c28a17d71f
benchmark: add benchmarks for String#=~ vs String#include? 2016-03-19 10:08:17 -07:00
Parker Moore b70ee10198 Add benchmarks for Page#dir 2016-01-27 08:28:41 -08:00
Parker Moore 4da6bfd81a Add benchmark for end_with? vs regexp 2015-02-25 11:57:49 -08:00
ChaYoung You 7db9397a9d
Remove trailing whitespace 2015-02-22 20:27:15 +09:00
Mads Ohm Larsen 60da4ef010 Fix weird spacing 2015-01-15 22:04:00 +01:00
Parker Moore 4df73ced0d Add benchmark for Jekyll.sanitized_path 2014-11-08 12:54:02 -08:00
Parker Moore ab3f27e674 Add benchmark for sequential assignment.
Calculating -------------------------------------
 parallel assignment    126425 i/100ms
multi-line assignment
                        136492 i/100ms
-------------------------------------------------
 parallel assignment  6382145.2 (±10.1%) i/s -   31606250 in   5.006184s
multi-line assignment
                      9281041.8 (±11.7%) i/s -   45724820 in   5.001599s
2014-10-22 01:40:55 -07:00
Parker Moore e028d50b3f Add benchmark around string replacement.
Calculating -------------------------------------
                 #tr     62416 i/100ms
               #gsub     33750 i/100ms
              #gsub!     29695 i/100ms
                #sub     60774 i/100ms
               #sub!     64955 i/100ms
-------------------------------------------------
                 #tr   989348.8 (±5.0%) i/s -    4993280 in   5.060836s
               #gsub   422892.9 (±4.3%) i/s -    2126250 in   5.037741s
              #gsub!   364115.6 (±4.0%) i/s -    1841090 in   5.064496s
                #sub   964336.6 (±4.4%) i/s -    4861920 in   5.051775s
               #sub!  1016598.5 (±4.7%) i/s -    5131445 in   5.058987s
2014-10-22 01:36:43 -07:00
Parker Moore a30498ba42 Add benchmark for #flat_map
Calculating -------------------------------------
.map.flatten with nested arrays
                          4718 i/100ms
.flat_map with nested arrays
                          6048 i/100ms
.map.flatten with no nested arrays
                          9804 i/100ms
.flat_map with no nested arrays
                          9302 i/100ms
-------------------------------------------------
.map.flatten with nested arrays
                        48118.3 (±4.8%) i/s -     240618 in   5.011942s
.flat_map with nested arrays
                        63838.6 (±5.1%) i/s -     320544 in   5.034864s
.map.flatten with no nested arrays
                       104879.3 (±4.4%) i/s -     529416 in   5.057802s
.flat_map with no nested arrays
                        99935.3 (±6.6%) i/s -     502308 in   5.049506s
2014-10-22 01:27:45 -07:00
Parker Moore 7c05312d5c Add benchmark for yield vs proc.call
Calculating -------------------------------------
               yield     70018 i/100ms
          block.call     42809 i/100ms
-------------------------------------------------
               yield  1099624.2 (±7.3%) i/s -    5531422 in   5.056107s
          block.call   604006.1 (±7.1%) i/s -    3039439 in   5.058794s
2014-10-22 01:18:09 -07:00
Parker Moore 7e37892bbd Add a benchmark for symbol-to-proc
Calculating -------------------------------------
               block      5403 i/100ms
              &:to_s      6094 i/100ms
-------------------------------------------------
               block    60023.4 (±5.3%) i/s -     302568 in   5.055537s
              &:to_s    59047.0 (±4.9%) i/s -     298606 in   5.068991s
2014-10-22 01:17:22 -07:00
Parker Moore 4e07dfef1f Add benchmark for hash-fetch
Calculating -------------------------------------
 fetch with no block     66979 i/100ms
  fetch with a block    138257 i/100ms
 brackets with an ||    145792 i/100ms
-------------------------------------------------
 fetch with no block  1255521.2 (±5.2%) i/s -    6296026 in   5.028856s
  fetch with a block  6402972.5 (±8.1%) i/s -   31799110 in   5.002554s
 brackets with an ||  8536511.4 (±8.1%) i/s -   42425472 in   5.005831s
2014-10-22 01:11:34 -07:00
Parker Moore 95e96a0f83 Add a benchmarking script for string-concat 2014-10-22 00:56:54 -07:00