Skip to content

KenseiECS vs other ECS ​

This page compares KenseiECS with the C# ECS frameworks people usually weigh it against. It sticks to design and capabilities. Performance numbers come only from this repository's benchmarks, which cover LeoEcsLite and Arch; Friflo, Unity Entities and DefaultEcs were not benchmarked here, so no numbers are given for them.

Project status was checked in October 2026. Every claim about another library links to a source in the list at the bottom of the page.

At a glance ​

KenseiECSArchFriflo.Engine.ECSUnity EntitiesLeoEcsLiteDefaultEcs
StorageSparse set per type, optional owning groupsArchetypes in 16 KB chunksArchetypes, contiguous memoryArchetypes in chunksSparse-set poolsPer-type component storage
Latest version2.5.12.1.0 (May 2025)3.6.0 (Mar 2026), 4.0 in preview6.7 (package)2026.4.25 (Apr 2026)0.17.2 (Feb 2022), 0.18.0-beta01 (Apr 2023)
StatusActive, newActiveActiveActive, by UnityArchived; author recommends EcsProtoInactive since 2024
Plain Unity without DOTSYesYes (via Arch.Unity)YesNo, it is DOTSYesYes
Burst / Unity jobsNoYes, through Arch.Unity's IJobArchChunkNot documentedYes, built inNot documentedNot documented
Plain .NETnetstandard2.1, net8.0netstandard2.1, .NET 6/8netstandard2.1, .NET 5 to 10, Native AOTNoYesnetstandard1.1+
NuGet packageNo (git URL / project reference)YesYesNo (Unity package)—Yes

Storage model and structural changes ​

KenseiECS keeps each component type in its own sparse set. Adding or removing a component touches that type's pool and the filters that watch it, and never moves the entity's other components. Archetype ECSs (Arch, Friflo, Unity Entities) group entities with the same component set into contiguous chunks. Iteration is as fast as it gets, but every add or remove moves the entity's whole component set to another archetype.

Unity's documentation states the cost directly: on an archetype change "Unity must move the entity to another chunk", structural changes cannot run in jobs, and they create sync points where the main thread waits for all scheduled jobs. Unity offers entity command buffers and enableable components (toggled without a structural change) to work around this. Arch and Friflo also have command buffers for deferring changes.

Measured in this repository (10,000 entities, add + remove one component, see Benchmarks):

KenseiECSLeoEcsLiteArch
Add + remove, nothing observing the type87 us73 us590 us
Add + remove, 32 filters observing the type1,008 us4,356 us—

LeoEcsLite wins the unobserved case because it keeps no per-entity bitmask. KenseiECS pulls ahead once filters care about the changed type, and against Arch the gap is the archetype move.

Iteration speed ​

Iteration is where archetype ECSs win. Measured in this repository over Position + Velocity, 10,000 entities:

KenseiECS filterKenseiECS owning groupLeoEcsLiteArch
Fresh world13.8 us5.5 us14.0 us5.4 us
Fragmented world14.8 us5.5 us16.7 us5.4 us
Mixed game-loop frame35 us—40 us78 us

A KenseiECS filter loop is on par with LeoEcsLite and about 2.5x slower than Arch. An owning group matches Arch, but only for the 2–4 component types it owns, and a pool can belong to one group only. In an archetype ECS every query gets contiguous iteration without choosing groups up front. The mixed frame, where one-frame components are added and removed every tick, is where KenseiECS comes out ahead.

Friflo and Unity Entities were not benchmarked here. They are archetype ECSs, so expect their iteration to behave like Arch's rather than like a sparse set, but this page gives no numbers for them.

Queries and filters ​

Query model
KenseiECSReactive filters with Inc, Exc and Any. The cached entity set is updated on each structural change, and identical filters are deduplicated.
ArchQueryDescription with WithAll, WithAny and WithNone.
FrifloQueries with component types and tag filters (AllTags). Also O(1) lookup by indexed component value, plus relations and parent/child hierarchies.
Unity EntitiesEntityQuery, with change filters and shared-component value filters.
LeoEcsLiteFilters with Inc and Exc that cache entity lists.
DefaultEcsEntitySet built with With and Without. The README says it is "automatically updated as you change your entity component composition". Also EntityMap and EntityMultiMap keyed by component value, and WhenAdded, WhenChanged and WhenRemoved rules.

KenseiECS has no relations, hierarchies or component-value indexes. Friflo is the most complete in that area.

Change tracking and events ​

Change trackingStructural events
KenseiECSOpt-in per pool: Modify/MarkChanged stamp a per-component version, and consumers ask ChangedSince. Per entity, but writes through Get are not seen.Component listeners per pool and world events, always compiled in. Also one-frame components.
ArchEvents include a "component modification" event.Entity create/destroy and component add/set/remove events, behind #define EVENTS, which requires building Arch from source (a fork), because "it affects efficiency somewhat".
FrifloComponent events carry an Update action with access to the old value. EventRecorder and EventFilter let queries filter by recorded events.Component, tag, script and child-entity events, plus custom struct signals.
Unity EntitiesChange filters "apply to whole archetype chunks, and not individual entities". A chunk counts as changed when a system with write access ran, "not whether it changed any data".No per-entity callbacks. Structural work goes through entity command buffers.
LeoEcsLiteNone.World and filter events behind LEOECSLITE_WORLD_EVENTS / LEOECSLITE_FILTER_EVENTS, which the author advises against for performance reasons. World events are also on in every DEBUG build.
DefaultEcsWhenChanged sets, triggered by Set or NotifyChanged.Message publish and subscribe, plus WhenAdded and WhenRemoved sets.

Unity integration ​

  • KenseiECS is a regular UPM package with no DOTS dependency. It supports Unity 2021.3+ and IL2CPP, and ships a bootstrap and inspector authoring, a listener bridge to MonoBehaviours and editor windows. World, pools and filters are managed classes, so Burst does not apply and the Unity job system is not used.
  • Unity Entities is Unity's own DOTS ECS. It brings baking from GameObjects, subscenes, Burst-compiled IJobEntity jobs scheduled in parallel, and integration with Entities Graphics, Unity Physics and Netcode for Entities. For heavy simulation in Unity, it is the strongest option on this list. In exchange, the project is built around DOTS rather than plain GameObjects.
  • Arch runs in Unity, and the community package Arch.Unity adds GameObject-to-entity conversion, an Arch Hierarchy window, PlayerLoop systems and IJobArchChunk for Burst jobs over Arch queries. Its dependencies are installed through NuGet For Unity.
  • Friflo supports Unity (Mono, AOT/IL2CPP, WebGL). The friflo-ecs-unity package adds Inspector components and syncs with GameObjects and scene files.
  • LeoEcsLite is tested on Unity 2020.3, with a separate editor integration package. The repository is archived.
  • DefaultEcs can be used in Unity, but its serializers use Reflection.Emit and do not work on AOT platforms.

.NET support ​

KenseiECS targets netstandard2.1 and net8.0 from the same sources the Unity package uses. There is no NuGet package: you reference the project or copy the sources (see Installation). The site's live demo runs KenseiECS on .NET WebAssembly. Arch and Friflo ship on NuGet, and Friflo has the widest platform list, from .NET Standard 2.1 to .NET 10 plus WASM and Native AOT. Unity Entities does not run outside Unity.

Threading ​

  • KenseiECS: the world is single-threaded. ParallelRunner splits a filter or group over its own worker threads with struct jobs and no allocations. Jobs may only touch component data in their range.
  • Arch: parallel query overloads (ParallelQuery, InlineParallelChunkQuery, …) on its own allocation-free JobScheduler. Its command buffers are described as thread-safe.
  • Friflo: multithreaded queries ("Parallel Query Job").
  • Unity Entities: the C# job system with Burst, dependency tracking and parallel scheduling. Structural changes cause sync points on the main thread.
  • LeoEcsLite: not thread-safe, "and never will be", according to its README.
  • DefaultEcs: IParallelRunner and parallel systems. Creating and disposing entities is not thread-safe.

Code generation ​

KenseiECS ships a Roslyn source generator that writes a system's Init from [Inc], [Exc], [Pool], [Group] and [Shared] field attributes, with compile-time diagnostics. Queries stay hand-written loops. Friflo 3.6 added a Query Generator for query code. Arch.Extended adds systems and source generators. Unity Entities generates the job code for IJobEntity. DefaultEcs has a separate Roslyn analyzer. LeoEcsLite has none.

Debug tooling ​

  • KenseiECS: Unity editor windows for systems (with per-system timings), the World Inspector (editable components) and a Profiler for entity lifecycle events, plus a DebuggerTypeProxy for IDEs. Most of it requires the KENSEI_DEBUG define, which also turns on runtime validation of stale handles, and costs nothing in release builds. See Debug Tools and Release vs. KENSEI_DEBUG.
  • Unity Entities: Entities Hierarchy, the Systems window and the Inspector integration.
  • Arch: Arch Hierarchy in Arch.Unity, plus community debuggers for Godot and Stride.
  • Friflo: debugger views of entities, components, tags, relations, query results and systems, plus the Unity Inspector integration.
  • LeoEcsLite: a separate Unity editor package for world monitoring.

Maturity and community ​

KenseiECS is new: version 2.5.1, a small community and no NuGet package. Every other project here has more users and a longer track record. Unity Entities has Unity behind it. Arch is the most-starred of the standalone libraries (about 1.8k GitHub stars). Friflo is under active development with frequent releases. LeoEcsLite is widely used in Unity projects but is now archived, and DefaultEcs has not had a stable release since 2022. If long-term support from a large community matters most, that counts against KenseiECS.

When to pick KenseiECS ​

  • You build a Unity game on plain GameObjects and want an ECS for gameplay logic without moving to DOTS.
  • Your gameplay is heavy on structural changes: one-frame events, status effects, tag components added and removed every frame. Sparse-set storage and reactive filters keep that cheap, and the mixed-frame benchmark is where KenseiECS leads.
  • You want reactive filters, per-pool listeners, world events and per-entity change tracking that are always available, with no compile flags.
  • You are migrating from LeoEcsLite (now archived) and want a similar API. See Migrating from LeoEcsLite.
  • You want the same ECS core in Unity and on a .NET server or in tools.

When not to ​

  • Raw iteration over large, stable entity sets dominates your frame. Arch iterates about 2.5x faster than a KenseiECS filter (other archetype ECSs were not measured here). Owning groups close the gap only for the types they own.
  • You need Burst and the Unity job system, or you are already on DOTS (Entities Graphics, Unity Physics, Netcode for Entities). Use Unity Entities.
  • You need relations, hierarchies or indexed component lookups built into the ECS. Friflo has all three.
  • You need a published NuGet package or Native AOT as a documented target today. Arch and Friflo are on NuGet, and Friflo documents the widest platform list.
  • You need a large community and a long track record. KenseiECS is young.
Sources

Opened in October 2026. Version and status data come from the GitHub repositories, their release lists and the NuGet package indexes.