RustTokioBenchmark VS phaser

Compare RustTokioBenchmark vs phaser and see what are their differences.

RustTokioBenchmark

Simple benchmark comparing tokio mpsc with standard rust one (by eras)

phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering. (by phaserjs)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
RustTokioBenchmark phaser
1 8
0 36,483
- 0.4%
2.7 9.8
about 1 month ago 5 days ago
Rust JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

RustTokioBenchmark

Posts with mentions or reviews of RustTokioBenchmark. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-26.
  • 3 years of fulltime Rust game development, and why we're leaving Rust behind
    21 projects | news.ycombinator.com | 26 Apr 2024
    > If you ever pull up a debugger and step through an async Rust/tokio codebase, you'll get a good sense for what the overhead here we're talking about is.

    So I didn't quite do that, but the overhead was interesting to me anyway, and as I was unable to find existing benchmarks (surely they exist?), I instructed computer to create one for me: https://github.com/eras/RustTokioBenchmark

    On this wee laptop the numbers are 532 vs 6381 cpu cycles when sending a message (one way) from one async thread to another (tokio) or one kernel thread to another (std::mpsc), when limited to one CPU. (It's limited to one CPU as rdtscp numbers are not comparable between different CPUs; I suppose pinning both threads to their own CPUs and actually measuring end-to-end delay would solve that, but this is what I have now.)

    So this was eye-opening to me, as I expected tokio to be even faster! But still, it's 10x as fast as the thread-based method.. Straight up callback would still be a lot faster, of course, but it will affect the way you structure your code.

    Improvements to methodology accepted via pull requests :).

phaser

Posts with mentions or reviews of phaser. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-26.
  • Alternatives to Flash Player for Videogame Coding?
    1 project | news.ycombinator.com | 8 May 2024
  • 3 years of fulltime Rust game development, and why we're leaving Rust behind
    21 projects | news.ycombinator.com | 26 Apr 2024
    If you're targeting the browser first why not use a browser first library like PhaserJS [0]?. I don't see a reason to work around with WASM; HTML5 canvas might be everything that you need.

    [0] https://phaser.io/

  • Gamedev.js Jam 2024 start and theme announcement!
    4 projects | dev.to | 13 Apr 2024
    Gold : GitHub, Phaser Studio, Arcadia
  • Introduction to JavaScript: Empowering Web Development with Interactivity
    4 projects | dev.to | 25 Mar 2024
    Versatility: JavaScript is not limited to web browsers. It's used in a variety of environments, including mobile app development (using frameworks like React Native), game development (using libraries like Phaser), and even serverless computing (using platforms like AWS Lambda).
  • A developer portfolio as a 2D top-down walking simulator
    3 projects | news.ycombinator.com | 15 Mar 2024
    This reminds me of my first real dev job, 10y ago, making small facebook games with https://phaser.io it was actually kind of fun now that I think back.
  • Aftermath of switching from VSCode to Neovim
    3 projects | dev.to | 19 Feb 2024
    Is it worth it? I think while attempting to create a game engine with the Canvas API and vanilla JavaScript. (I quickly ditched that idea and started using PhaserJS)
  • Phaser: A fast, fun and free open source HTML5 game framework
    2 projects | news.ycombinator.com | 13 Sep 2023
    I didn't try to build anything with Phaser, but I evaluated it a bit when trying to pick a game engine for a 2D web game.

    The tech didn't impress me that much, but it also seemed like the most mature 2D game engine available in JS.

    Notably, Phaser 4 was announced ~four years ago and was an attempt to get the project written natively in TypeScript. It looks pretty dead in the water - https://github.com/phaserjs/phaser and having a "best effort" TypeScript experience layered onto Phaser 3 didn't excite me.

    Additionally, with browsers gaining support for WebGPU, I expect any game engine worth their snuff to begin rapidly adopting support for WebGPU. As best I can tell, any hope of Phaser supporting WebGPU is lumped into Phaser 4, so... not much to say there.

    Overall, it was a little tough for me to tell if I was being overly critical and viewing a mature product as a ghost town, but that's the impression I took away from it.

    As far as I can tell, BabylonJS is king in town for a TypeScript game engine, but its focus is 3D experiences. I didn't find an especially compelling 2D game engine. I ended up making a prototype using React + PixiJS + React-Pixi, but that was hardly an engine and had significant performance issues.

    Now I am building in Rust with Bevy. It's slow going, creating UI elements sucks right now, but the underlying tech is super solid and I feel good about what I write and what I learn even if I'm dismayed at the pace in which I am creating.

What are some alternatives?

When comparing RustTokioBenchmark and phaser you can also consider the following projects:

kaboom.js - 💥 JavaScript game library

Excalibur - 🎮 Your friendly TypeScript 2D game engine for the web 🗡️

cocos-engine - Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.

Godot - Godot Engine – Multi-platform 2D and 3D game engine

A-Frame - :a: Web framework for building virtual reality experiences.

melonJS - a fresh, modern & lightweight HTML5 game engine

nextjs-boilerplate - A NextJS boilerplate with tailwindcss, eslint and prettier

offscreen-canvas - Demo app using worker.Canvas

Phaser - Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering. [Moved to: https://github.com/phaserjs/phaser]

three.js - JavaScript 3D Library.

React - The library for web and native user interfaces.

PixiJS - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.