A plugin to test Server->getPlayerExact() vs Map performance

Overview

PeformanceTests

A plugin to test Server->getPlayerExact() vs Map<username, Player> performance

Timings with Server->getPlayerExact()

Timings with Map<username, Player>

Testing proccess

I used FakePlayer (https://github.com/Muqsit/FakePlayer) to spawn in 100 fake players that don't move or do anything. Once all the players joined the server, I ran "/performance main" for testing Map<username, Player> performance. I restarted the server everytime I got the timings. To test the Server->getPlayerExact() performance I ran "/performance server".

Conclusion

Map<username, Player> is about 10 times faster than Server->getPlayerExact() with 100 players on the server.

You might also like...
A PocketMine-MP plugin to regulate player hunger and prohibit eating certain foods easily

NoEats A PocketMine-MP plugin to regulate player hunger and prohibit eating certain foods easily. Features Managing hunger. Permission bypass. Support

This Plugin runs commands when a player does a certain emote
This Plugin runs commands when a player does a certain emote

The EmoteCommands Plugin This Plugin runs commands when a player does a certain emote You will need a pocketmine server of at least version 4.0.0 Usag

NoFly is a PocketMine-MP plugin that doesn't allow the player to fly

NoFly is a PocketMine-MP plugin that doesn't allow the player to fly

A good plugin to play a sound when the player hits the enemy's head

HeadshotSound A good plugin to play a sound when the player hits the enemy's head. How to use Hit the player with a snowball, egg and bow in the head

API plugin to open a dialog for choosing another player.

ChoosePlayer API plugin for choosing a player interactively. API Let player select another player This API method opens a dialog to let player $choose

A simple plugin to teleport the player to world spawn when taking damage!

🧙‍♂️ • Damage TP Version Status Date 1.0.0 stable-dev 12/10/2022 📫 • General: Plugin Introduction: This is a simple plugin that teleports the player

A simple plugin to display a block name that player break or place in popup!

🧱 • Block Popup Version Status Date 1.0.0 stable-alpha 12/10/2022 📫 • General: Plugin Introduction: This is a simple plugin to add the function to d

Allows generate class files parse from json and map json to php object, including multi-level and complex objects;

nixihz/php-object Allows generate class files parse from json and map json to php object, including multi-level and complex objects; Installation You

Maps Railroad Online Savegames to a SVG map

RailroadOnlineMapper @ian76g#6577 Environments DEV - https://zwackelmann.online/ QA - https://ohnezahn.online/ PROD - https://minizwerg.online/ Gettin

Owner
KingOfTurkey38
Owner of AetherPE
KingOfTurkey38
QaraTMS is open source test case, test suites, test plans and test runs management tool.

QaraTMS - Open Source Test Management System QaraTMS is open source test management software for managing test suites, test cases, test plans, test ru

Alex H 29 Dec 22, 2022
Get the ID using twitter username.

Find Twitter ID Get the ID using twitter username. Development instance php 8.0 Composer 2.1.14 Installation composer install Set environment variabl

Fabrizio 0 Dec 26, 2021
This is a plugin for pocketmine-mp, when locking a player's items helps players not to lose items or throw things around causing server lag.

[] LockedItem| v1.0.0 Player's item lock Features Player's item lock Players aren't afraid of losing items For Devolopers You can access to LockedItem

JeroGamingYT 3 Jan 4, 2022
An advanced plugin to manage events when the player enters the server!

⭐ • Better Join Version Status Date 1.0.0 stable-dev 12/10/2022 ?? • General: Plugin Introduction: This is an advanced player input management plugin

HenryDM 3 Nov 2, 2022
SpawnInLobby Pocketmine-MP plugin. With this plugin the player will always join the game at the default world spawn point

SpawnInLobby Pocketmine-MP plugin. With this plugin the player will always join the game at the default world spawn point

null 1 Jan 7, 2022
Plugin that allows a player to morph into mobs

BurgerMorphs This plugin adds a Morphs system to PMMP. Players can morph into most mobs available in the game. Players can also morph into baby versio

null 5 Aug 28, 2022
A PocketMine-MP plugin to cancel the player's sprint

NoSprint A PocketMine-MP plugin to cancel the player's spint. Features Permissions bypass. Custom messages. Per world support. Lightweight and open so

null 3 May 17, 2022
A Pocketmine-MP (PMMP) leaderboard plugin that shows player statistics on a website.

WebLeaderBoard A Pocketmine-MP (PMMP) leaderboard plugin that shows all sorts of statistics on a website. Setup Guide To start using the plugin, downl

ItsMax123 6 Apr 5, 2022
This plugin gets player time while playing and leaderboard

TopNolep TopNolep is a plugin that retrieves the game time the player was on the server during, not only that, topnolep now provides a leaderboard tha

Edo 5 Oct 22, 2021