Coder Social home page Coder Social logo

pex-challenge's Introduction

hello!

you can find the rust code in /src folder there will be 2 files

main.rs -> implementation with rust shared state main-redis.rs -> i was in a good mood so i decided to implement this with redis as well

so if you want to test the redis implementation, just rename the file to main.rs

also i have a docker-compose.yml file for you to run the redis server for some reason, my docker rust runs fine but i am not able to access from outside, so i may need help with that. but you can still run the redis server with docker-compose up -d

to run my rust code, simply run cargo build --release and then ./target/release/pex-challenge this will start the server on 127.0.0.1:8080

then go to frontend folder and run npm install and then npm run dev for the nextjs frontend

i hardcoded the backend url and port so you dont have to mess with .env file

Also here's my test result: wrk -t12 -c100 -d10s http://127.0.0.1:8080/next Running 10s test @ http://127.0.0.1:8080/next 12 threads and 100 connections Thread Stats Avg Stdev Max +/- Stdev Latency 1.02ms 140.74us 4.77ms 94.17% Req/Sec 7.87k 545.98 11.46k 88.61% 949259 requests in 10.10s, 210.63MB read Requests/sec: 93981.77 Transfer/sec: 20.85MB

pex-challenge's People

Contributors

westdabestdb avatar

Watchers

 avatar  avatar

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.