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
0511ece2f5
Use String#<< instead of String#+=
...
I just couldn’t believe this but look:
~/jekyll/jekyll#master$ ruby benchmark/string-concat
Calculating -------------------------------------
+= 6367 i/100ms
<< 128697 i/100ms
-------------------------------------------------
+= 1704.3 (±0.6%) i/s - 12734 in 7.472170s
<< 4381212.4 (±6.3%) i/s - 21878490 in 5.014899s
WOW.
2014-10-22 00:58:20 -07:00
Parker Moore
1395d5686b
Optimize more URL#sanitize_url
2014-10-22 00:57:53 -07:00
Parker Moore
3227c4ecea
Use #tr instead of #gsub
2014-10-22 00:57:25 -07:00
Parker Moore
b9c4fc93d7
Use flat_map instead of map.flatten
2014-10-22 00:57:06 -07:00
Parker Moore
95e96a0f83
Add a benchmarking script for string-concat
2014-10-22 00:56:54 -07:00
Parker Moore
c92ad3b595
Update history to reflect merge of #3018 [ci skip]
2014-10-20 21:29:31 -07:00
Parker Moore
3285aebd4f
Merge pull request #3018 from jekyll/webrick-fancy-indexing
2014-10-20 21:28:35 -07:00
Parker Moore
9cc3085dd0
Turn on FancyIndexing.
2014-10-20 21:23:30 -07:00
Parker Moore
5b37ad57cc
If `--verbose` is given, debug the sh*t out of that.
2014-10-20 21:23:22 -07:00
Parker Moore
3dedcbf894
Sort webrick_options
2014-10-20 21:23:00 -07:00
Parker Moore
2ca2990f6b
Update history to reflect merge of #2997 [ci skip]
2014-10-20 20:11:26 -07:00
Parker Moore
7fd9f102c0
Merge pull request #2997 from jekyll/utils-slugify
2014-10-20 20:11:04 -07:00
Parker Moore
cc3a31e363
Update history to reflect merge of #2986 [ci skip]
2014-10-20 20:09:39 -07:00
Parker Moore
5ed4638400
Merge pull request #2986 from tamagokun/where_filters_enumerable
2014-10-20 20:09:21 -07:00
Parker Moore
a64e7e8814
Update history to reflect merge of #3011 [ci skip]
2014-10-20 20:08:04 -07:00
Parker Moore
6723db8157
Merge pull request #3011 from fhemberger/master
2014-10-20 20:07:09 -07:00
Parker Moore
996db6912d
Update history to reflect merge of #3017 [ci skip]
2014-10-20 09:57:50 -07:00
Parker Moore
c77d06446d
Merge pull request #3017 from glaucocustodio/master
2014-10-20 09:57:04 -07:00
Glauco Custódio
68c0e8f847
Hash#each_key instead of Hash#keys.each. Faster code.
2014-10-20 10:10:29 -02:00
Parker Moore
4b4a46579a
Update history to reflect merge of #3013 [ci skip]
2014-10-18 12:30:42 -07:00
Parker Moore
c95f4c0f5b
Merge pull request #3013 from jekyll/revert-2921-post-dest
2014-10-18 12:21:28 -07:00
Parker Moore
078b2785e4
Revert "Make permalink parsing consistent with pages"
2014-10-18 12:07:44 -07:00
Frederic Hemberger
1d726a87b9
Docs: Clarify behavior of 'categories' in permalinks
2014-10-18 08:29:26 +02:00
Parker Moore
90b6723288
Update history to reflect merge of #3010 [ci skip]
2014-10-17 12:30:47 -07:00
Parker Moore
a9d7031e7c
Merge pull request #3010 from croaky/master
2014-10-17 12:25:22 -07:00
Dan Croak
db220a9de6
Add FormKeep to resources as Jekyll form backend
...
Launched by [thoughtbot] today.
Intended to be Jekyll-friendly with
no iframes, JavaScript embeds, or CSS overrides.
It just generates a URL to use as your form's `action` endpoint.
It has a very simple webhook system, which means
it can automatically forward all submissions to a webhook of your choosing.
We've been using [Zapier] to handle the heavy lifting of
sending form data along from FormKeep to MailChimp, Trello, etc.
[thoughtbot]: https://thoughtbot.com
[Zapier]: http://zapier.com
2014-10-17 11:00:44 -07:00
Parker Moore
9f5835871b
Utils.slugify: Don't create new objects when gsubbing
2014-10-12 16:18:40 -07:00
Parker Moore
b62415019b
Update history to reflect merge of #2994 [ci skip]
2014-10-12 15:49:51 -07:00
Parker Moore
00d29e7e77
Merge pull request #2994 from jekyll/fixes-from-benchmarking
2014-10-12 15:49:20 -07:00
Parker Moore
5b5a25a03a
Install with multiple jobs. [ci skip]
2014-10-12 15:47:01 -07:00
Parker Moore
be3d723d73
Update history to reflect merge of #2996 [ci skip]
2014-10-12 15:19:29 -07:00
Parker Moore
7cad48a3ee
Merge pull request #2996 from hickford/link-feed-from-head
2014-10-12 15:18:12 -07:00
Parker Moore
b564214535
Pass the context on to IncludeRelativeTag#page_path
2014-10-12 15:16:38 -07:00
Matt Hickford
63a6d595c4
Fix feed link to respect baseurl
2014-10-12 23:14:41 +01:00
Parker Moore
22cc393cd4
Ignore the stackprof tmp files.
2014-10-12 15:12:30 -07:00
Parker Moore
0400ffe377
Only re-run the stackprof if I delete the prof output file.
2014-10-12 15:11:53 -07:00
Parker Moore
b07cbcecbd
Don't print the location of the stackprof executable
2014-10-12 15:11:44 -07:00
Parker Moore
626706c8c5
Cache the `@includes_dir` in each instance so the method isn't called all the time
2014-10-12 15:11:28 -07:00
Parker Moore
a7c0fffcec
Only run script/bootstrap in stackprof if stackprof executable isn't there
2014-10-12 14:39:04 -07:00
Parker Moore
73ca205a5c
Add test for Document#basename_without_ext
2014-10-12 14:33:13 -07:00
Parker Moore
4942b2947b
Only compile the Converter#matches regexp when asked for
2014-10-12 14:31:49 -07:00
Parker Moore
fbe98df488
Cache variables that won't change through the life of an object
2014-10-12 14:06:17 -07:00
Parker Moore
44c9f81921
Cache the extname regexp in Converters::Markdown and Textile
2014-10-12 14:06:16 -07:00
Parker Moore
681d71ac04
Move script/benchmark to script/stackprof. [ci skip]
2014-10-12 14:05:55 -07:00
Parker Moore
3902e373d8
Update history to reflect merge of #2993 [ci skip]
2014-10-12 14:05:34 -07:00