diff --git a/Gemfile b/Gemfile
index 9d19ebf..2f56cf4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -14,13 +14,6 @@ gem 'pg', '>= 0.18', '< 2.0'
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
require 'benchmark/ips' | |
def fast | |
'' | |
end | |
def slow | |
"" | |
end |
require 'benchmark/ips' | |
# Because the methods avoid creating a `MatchData` object or saving backref. | |
# So, when `MatchData` is not used, use `match?` instead of `match`. | |
def fast | |
"aaacolorzzz".match?(/color/) | |
end | |
def slow | |
"aaacolorzzz".match(/color/) |
(define (for-each proc items) | |
(if (null? items) | |
#f | |
(begin | |
(proc (car items)) | |
(for-each proc (cdr items))) | |
) | |
) | |
(for-each (lambda (x) (newline) (display x)) (list 57 321 88)) |
require 'benchmark/ips' | |
def ternary_equal | |
(true == true) ? true : false | |
end | |
def ternary_not_equal | |
(true != false) ? true : false | |
end |
### 10 columns, 1,000,000 lines
Calculating -------------------------------------
unquoted 1.397B memsize ( 61.000M retained)
16.000M objects ( 2.000 retained)
28.000 strings ( 1.000 retained)
quoted 1.857B memsize ( 81.000M retained)
26.000M objects ( 2.000 retained)
29.000 strings ( 1.000 retained)
# 5 columns, 10,000 rows
Warming up --------------------------------------
unquoted 1.000 i/100ms
quoted 1.000 i/100ms
(libcsv) unquoted 1.000 i/100ms
(libcsv) quoted 1.000 i/100ms
Calculating -------------------------------------
Do you know Apache Arrow? Most people probably do not hear or know only the name or only the concept. There will be few people who have actually experienced it. Apache Arrow is a project that will become an important component in the data processing in a few years. People who are interested in the data processing should be useful to know, so I will introduce the latest information as of September 2018.
I'm the only Japanese in PMC and the number of commits is the third most. Maybe I'm familiar with Apache Arrow in Japan. Since there is not much information on Apache Arrow in Japanese, I will introduce it in Japanese. Incidentally, there are various information in English. Useful information sources include the official blog of Apache Arrow, [
The original Japanese article was written by Kouhei Sutou, a member of Apache Arrow PMC. He was the release manager of Apache Arrow 0.11.0.
We released Apache Arrow 0.11.0 on October 8, 2018.
``` | |
$ rake | |
Run options: | |
# Running tests: | |
Finished tests in 1.893467s, 224.9841 tests/s, 4058.1642 assertions/s. | |
426 tests, 7684 assertions, 0 failures, 0 errors, 0 skips | |
ruby -v: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17] |