Skip to content

sum crc32 #2179

Answered by jqnatividad
tooptoop4 asked this question in Q&A
Sep 30, 2024 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

FWIW, with qsv 0.137.0, I get these figures:

$  hyperfine 'qsv apply operations crc32 "Unique Key" --new-column bobb NYC_311_SR_2010-2020-sample-1M.csv |  qsv sqlp - --cache-schema  "select sum(bobb) from _t_1"'
Benchmark 1: qsv apply operations crc32 "Unique Key" --new-column bobb NYC_311_SR_2010-2020-sample-1M.csv |  qsv sqlp - --cache-schema  "select sum(bobb) from _t_1"
  Time (mean ± σ):      2.802 s ±  0.008 s    [User: 3.076 s, System: 0.703 s]
  Range (min … max):    2.787 s …  2.813 s    10 runs

For your one-liner:

$ hyperfine 'qsv select 1 NYC_311_SR_2010-2020-sample-1M.csv | tail -n +2 | python -c "import sys, binascii; print(sum(binascii.crc32(line.encode()) for line in sys.s…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@tooptoop4
Comment options

@jqnatividad
Comment options

@tooptoop4
Comment options

@jqnatividad
Comment options

Answer selected by jqnatividad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants