Skip to content

Search by content of a column vs luau filter #2483

Answered by jqnatividad
ondohotola asked this question in Q&A
Discussion options

You must be logged in to vote

Some metrics using the different approaches above using the 1 million row NYC 311 sample we use in our benchmarks:

$ /usr/bin/time qsv luau filter 'string.match(City,Borough)' /tmp/NYC_311_SR_2010-2020-sample-1M.csv -o /tmp/t1.csv                           
        7.72 real         7.08 user         0.57 sys
$ /usr/bin/time qsv luau filter --no-globals 'string.match(col["City"],col["Borough"])' /tmp/NYC_311_SR_2010-2020-sample-1M.csv -o /tmp/t2.csv
        5.30 real         4.68 user         0.56 sys
$ qsv luau filter 'City==Borough' /tmp/NYC_311_SR_2010-2020-sample-1M.csv -o /tmp/t3.csv 
        7.48 real         6.89 user         0.55 sys
$ /usr/bin/time qsv luau filter --no-globals 'c…

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jqnatividad
Comment options

@ondohotola
Comment options

Answer selected by jqnatividad
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ondohotola
Comment options

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
Converted from issue

This discussion was converted from issue #2478 on January 27, 2025 16:13.