
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
require 'benchmark/ips'
Benchmark.ips do |x|
LIMIT = 20000
columns = %i(id)
x.report('as_json') { Incident.limit(LIMIT).select(*columns).as_json }
x.report('pluck_json') { Incident.limit(LIMIT).pluck_json(*columns) }
x.compare!
end
Calculating -------------------------------------
as_json 1.000 i/100ms
pluck_json 1.000 i/100ms
-------------------------------------------------
as_json 0.585 (± 0.0%) i/s - 4.000 in 6.876732s
pluck_json 16.215 (±12.3%) i/s - 80.000
Comparison:
pluck_json: 16.2 i/s
as_json: 0.6 i/s - 27.72x slower
Benchmark.ips do |x|
LIMIT = 20000
columns = %i(id category_id user_id)
x.report('as_json') { Incident.limit(LIMIT).select(*columns).as_json }
x.report('pluck_json') { Incident.limit(LIMIT).pluck_json(*columns) }
x.compare!
end
Calculating -------------------------------------
as_json 1.000 i/100ms
pluck_json 1.000 i/100ms
-------------------------------------------------
as_json 0.550 (± 0.0%) i/s - 3.000 in 5.463522s
pluck_json 10.586 (± 9.4%) i/s - 53.000
Comparison:
pluck_json: 10.6 i/s
as_json: 0.5 i/s - 19.25x slower
Bug reports and pull requests are welcome on GitHub at https://github.com/pavlik4k/pluck_json. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that pluck_json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.