Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

As a fun experiment, I've been tinkering with building a new test runner. It's crazy how fast it is (and this is only using one process to be a fair comparison, by default it's doing parallel testing)

10,013 görüntüleme • 2 ay önce •via X (Twitter)

19 Yorum

Alfred Bez profil fotoğrafı
Alfred Bez2 ay önce

Very interesting comparison. If both runners execute the same tests in a single process and produce the same results, what is the main source of the performance difference? Is the yours lacking PHPUnit features? Any optimizations that could potentially benefit PHPUnit as well?

Brent profil fotoğrafı
Brent2 ay önce

Still have to look into that

Alexander Schranz profil fotoğrafı
Alexander Schranz2 ay önce

Does it run things parallel or where does the speed coming from? Would be nice if there is a diff to paratest or pest parallel mode.

Brent profil fotoğrafı
Brent1 ay önce

This is one process, so no parallel

Karel profil fotoğrafı
Karel1 ay önce

I think it's really great that it's written in PHP and not Rust or Go. These kinds of initiatives push PHP forward, and some patterns become more and more refined over time across the ecosystem. It may even lead to new language features eventually.

Tijmen Wierenga profil fotoğrafı
Tijmen Wierenga2 ay önce

Impressive! Can you share something about how you achieved this?

Brent profil fotoğrafı
Brent2 ay önce

Will do in the future

Christoph Rumpel 🤠 profil fotoğrafı
Christoph Rumpel 🤠2 ay önce

Cool, I started too some time ago but never finished. I also felt there is place for something new

Sander Muller profil fotoğrafı
Sander Muller1 ay önce

Been thinking about this a lot too, but I would not choose PHP as the language to build this in. Rector is rebuilding in Go for a reason, shame to start a new test runner in PHP IMO (though I understand)

Maks Rafalko profil fotoğrafı
Maks Rafalko1 ay önce

Is it written with non-PHP language?

Brent profil fotoğrafı
Brent1 ay önce

Nope just php

Dmitrii Derepko profil fotoğrafı
Dmitrii Derepko1 ay önce

I think you should compare with testo/testo

Daniel Newns profil fotoğrafı
Daniel Newns2 ay önce

Built from the ground up? The speed difference is massive on this do you think you'll continue on with this experiment and look to release it?

Brent profil fotoğrafı
Brent2 ay önce

Build from scratch, yeah. Well, on top of tempest/console, but that was also built from scratch. I might actually do something for it. Still experimenting atm

D34dMan profil fotoğrafı
D34dMan1 ay önce

Interesting indeed. So in this experiment is tempest running on same phpunit tests cases?

Pert Soomann profil fotoğrafı
Pert Soomann2 ay önce

You don't do the just return true for all tests optimization technique, do you? 😂

Brent profil fotoğrafı
Brent2 ay önce

No these really is my test suite ported :p Next experiment is the Tempest test suite

Aleksei Gagarin profil fotoğrafı
Aleksei Gagarin1 ay önce

@PerttiSoomann Are these tests public? I want to touch it using Testo :D

Brent profil fotoğrafı
Brent1 ay önce

@PerttiSoomann Yes they are here

Benzer Videolar