leon0399 / benchmarks

World's complete programming language benchmark
https://leon0399.ru/experiments/benchmarks/
MIT License
4 stars 1 forks source link

Sweep: write `mandelbrot/Simple` in Python #21

Closed leon0399 closed 6 months ago

leon0399 commented 6 months ago

Details

Implement mandelbrot/Simple benchmark in Python, and put it into python/mandelbrot/Simple.py.

You MUST implement it exactly in the same way as in other languages examples: php/mandelbrot/Simple.php, javascript/mandelbrot/Simple.js, ruby/mandelbrot/Simple.rb. Add script to python/benchmark.yaml

Here are other examples of out Python code: python/primes/Atkin.py. Use it to se how collect and report execution time.

Checklist - [X] Create `python/mandelbrot/Simple.py` ✓ https://github.com/leon0399/benchmarks/commit/5bbec6805368f6004915ec190c16acbd717bf3a0 [Edit](https://github.com/leon0399/benchmarks/edit/sweep/write_mandelbrotsimple_in_python/python/mandelbrot/Simple.py) - [X] Running GitHub Actions for `python/mandelbrot/Simple.py` ✓ [Edit](https://github.com/leon0399/benchmarks/edit/sweep/write_mandelbrotsimple_in_python/python/mandelbrot/Simple.py) - [X] Modify `python/benchmark.yml` ✓ https://github.com/leon0399/benchmarks/commit/3607879ff8b92fa148d94f3f6ccf23757a8e07af [Edit](https://github.com/leon0399/benchmarks/edit/sweep/write_mandelbrotsimple_in_python/python/benchmark.yml#L19-L20) - [X] Running GitHub Actions for `python/benchmark.yml` ✓ [Edit](https://github.com/leon0399/benchmarks/edit/sweep/write_mandelbrotsimple_in_python/python/benchmark.yml#L19-L20)
sweep-ai[bot] commented 6 months ago

🚀 Here's the PR! #23

See Sweep's progress at the progress dashboard!
Sweep Basic Tier: I'm using GPT-4. You have 1 GPT-4 tickets left for the month and 2 for the day. (tracking ID: 303b4671ee)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

[!TIP] I'll email you at hello@leon0399.ru when I complete this pull request!


Actions (click)

GitHub Actions✓

Here are the GitHub Actions logs prior to making any changes:

Sandbox logs for 83886b9
Checking python/benchmark.yml for syntax errors... ✅ python/benchmark.yml has no syntax errors! 1/1 ✓
Checking python/benchmark.yml for syntax errors...
✅ python/benchmark.yml has no syntax errors!

Sandbox passed on the latest master, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/leon0399/benchmarks/blob/83886b9e57af3a17931be850c0ea31cdbe41e24d/php/mandelbrot/Simple.php#L1-L64 https://github.com/leon0399/benchmarks/blob/83886b9e57af3a17931be850c0ea31cdbe41e24d/javascript/mandelbrot/Simple.js#L1-L63 https://github.com/leon0399/benchmarks/blob/83886b9e57af3a17931be850c0ea31cdbe41e24d/ruby/mandelbrot/Simple.rb#L1-L55 https://github.com/leon0399/benchmarks/blob/83886b9e57af3a17931be850c0ea31cdbe41e24d/python/benchmark.yml#L1-L21

Step 2: ⌨️ Coding

Ran GitHub Actions for 5bbec6805368f6004915ec190c16acbd717bf3a0:

--- 
+++ 
@@ -20,3 +20,4 @@
       - recursion/Tak.py
       - primes/Simple.py
       - collatz/MaxSequence.py
+      - mandelbrot/Simple.py

Ran GitHub Actions for 3607879ff8b92fa148d94f3f6ccf23757a8e07af:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/write_mandelbrotsimple_in_python.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.Something wrong? Let us know.

This is an automated message generated by Sweep AI.