Comments (3)
而且在这里直接选择了values[0]作为attribute的value是否过于粗暴,是否可以也用随机的方式从values中选择一个呢?
value := values[rand.Intn(len(values))]
from bool-expr-indexer.
@Pickles-wave 感谢。不知你有兴趣使用fuzzing test来重新组织一下测试代码吗?起初我只是快速的验证一下我的想法benchmark一下,我认为go 1.18之后推出的fuzz test工具更适合测试现有的代码。
from bool-expr-indexer.
@csimplestring 我对go语言还不太熟悉,只能勉强看懂,我后续有时间的话会尝试的🤦🤦
这里要是修改为if flase,value = ""的话,也就是assignment会有99%的attributes中value不为空,那这时每次调用match的时间应该就不是您目前的这个测试结果了,大概会慢许多。我目前本地没有环境,没办法立即测试🤦
from bool-expr-indexer.
Related Issues (4)
- 这个可以直接同一个定向多个属性的查询吗? HOT 8
- Asking for CNF support HOT 1
- 方便解释下benchmark中,20-12,30-12,40-12的意思吗? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bool-expr-indexer.