Giter Site home page Giter Site logo

onboarding's People

Contributors

0xdatalogist avatar 2hamed avatar alimirlou avatar alimohammadisoumee avatar alirezaazadi avatar alirp88 avatar amaralani avatar amiralies avatar amirhka avatar ans-ashkan avatar armanjr avatar bojbaj avatar farshad-akbari avatar fasihi-rad avatar golover avatar graymind75 avatar hamedsj avatar hatamiarash7 avatar javad-alipanah avatar jedimahdi avatar keivanh avatar liamplm avatar mahdizareie avatar mehrdad-seno avatar mohaalak avatar mosajjal avatar rmaan avatar s-soroosh avatar sizief avatar tohidheshmati avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

onboarding's Issues

Test files

Hi.

First of all, I have to thank you for your amazing idea.

As we see , in test file we have 5 non-prim numbers at first, and another numbers are prim!!!
So I can just print 0 for first 5 records and 1 for other records!!!!

As a result, I don't think test files are fair.
I think it's better that have more non-prim numbers in random places.
It can bring us closer to reality.

weird results

Hi

I have changed my code slightly in the last round, this is the time recorded in my machine

python3 original.py   10.34s user 1.98s system 99% cpu 12.340 total
python3 original.py   10.11s user 2.25s system 99% cpu 12.360 total
python3 original.py   10.35s user 2.12s system 99% cpu 12.475 total
python3 prime_checker.py   5.75s user 0.42s system 93% cpu 6.591 total
python3 prime_checker.py   5.77s user 0.39s system 93% cpu 6.572 total
python3 prime_checker.py   5.79s user 0.43s system 93% cpu 6.649 total

so based on those my code should work faster but the result was the opposite!

last round time 4.xx seconds
this round 160.xx seconds ://

it's so weird

`sh` is required for running the containers now

Hi,

in run_in_file_program.sh, use of sh command is required. I've built my container FROM scratch so it won't run with this.

Is sh a requirement for running the challenges? if so, we should make sure it's reflected in the docs.

Cheers,

Test time in Action is misleading

Hi,

I've done a bunch of tests and it looks like the time elapsed in run.py does not represent the real time of the algorithm.

I've built a couple of the contestant's containers and tested the results locally and it doesn't match up with the repo's Action results. This is what I ran:

perf stat docker run -it --rm -v /tmp/ch1/input.txt:/input.txt prime:CONTENSTANT /input.txt > /dev/null

Please let me know if you need me to share more info

I think the countme runner has some issues!

https://soallpeach.run/scores/17223

Traceback (most recent call last):
File \"workspace/metrics.py\", line 30, in <module>
metrics_json = json.loads(metrics_file.read())
File \"/opt/hostedtoolcache/Python/3.8.2/x64/lib/python3.8/json/__init__.py\", line 357, in loads
return _default_decoder.decode(s)
File \"/opt/hostedtoolcache/Python/3.8.2/x64/lib/python3.8/json/decoder.py\", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File \"/opt/hostedtoolcache/Python/3.8.2/x64/lib/python3.8/json/decoder.py\", line 355, in raw_decode
raise JSONDecodeError(\"Expecting value\", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

More accurate tests for Prime

I would suggest having composite numbers in the input.txt file.

Also for the output, it's better to have a reference to the input number.
Currently, you only rely on the order of numbers which doesn't seem safe! In another word, what if I accidentally print "1" as the result of 11 instead of "1" as the result of 13? The final result is correct, but you cannot see the mistake!

Cache execution results

If the latest commit id of the branch is the same as the previous one, don't run it again.

Try wrk instead of vegeta

When I use vegeta locally, it doesn't use so much CPU (I know about cpu=1 option) and also my webserver doesn't use any CPU.

On the other hand, when I try wrk for example, with 1 thread, both wrk and my webserver, both using some CPU!

I think replacing it with a better tool can leads to different results.

wrk command can be like:
wrk -t1 -c500 -d45s --latency -s script.lua http://localhost:8080

And content of script.lua will be like:
wrk.method = "POST" wrk.body = "8"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.