Benchmarker
Who we are:
- Sahas Patil - 9th Grade Roxbury High School
- Aryan Agarwal - 9th Grade John P Stevens High School
- Aarav Arya - 9th Grade John P Stevens High School
- Vikkranth Gamini - 9th Grade John P Stevens High School
Inspiration
Our inspiration was the personal challenges that we had during other coding projects. Many times, when we optimized a certain algorithm, we wouldn't know how much it actually benefitted the entire program.
What it does
The website compares two versions of a function and gives a score that shows how optimized the code is. It also provides AI insight on both functions with different stats.
How we built it
We utilized ollama api to generate the AI insight. We used flask and html to generate the frontend of the sight. We used python to generate the backend of the site (including the benchmarking system).
Challenges we ran into
We previously tried to generate the arguments by the AI, however, it was very unpredictable and therefore we opted to make the user generate the arguments instead.
Another challenge was that we needed to convert a string to actual code so we had to research how to do that with compile and exec.
Accomplishments that we're proud of
We're proud of incorporating AI in a way that was meaningful and beneficial to the site. We are also proud on taking a complex topic and breaking it down into smaller problems so that we could create a fully functional site within the time frame.
What we learned
We learned that the same pieces of code can have different time complexities.
What's next for Benchmarker
Making Benchmarker accessible to different languages and improving code input.
Using "Try it Out" Link
make sure when you use the link,
The Params need to be in a list!
ex: params = [1, 500] or params = list(range(1, 10000000))
PYTHON ONLY!!
Make sure that when you call your function, use the params variable as an input. Make sure you call your function! Be aware the the params variable inside the function refers to one of the items inside the params list you specified, not the whole list
Thank You!

Log in or sign up for Devpost to join the conversation.