Skip to content

Feature: thisProcess jit#1037

Open
guillep wants to merge 6 commits intopharo-project:pharo-12from
guillep:feat/thisProcess-jit
Open

Feature: thisProcess jit#1037
guillep wants to merge 6 commits intopharo-project:pharo-12from
guillep:feat/thisProcess-jit

Conversation

@guillep
Copy link
Member

@guillep guillep commented Dec 19, 2025

JIT compile thisProcess pseudo variable, and thus enable compilation of methods containing it.

Pre-benchs

[thisProcess] bench.

no-JIT: "  267,125,795 iterations in 5 seconds 3 milliseconds. 53393123.126 per second"
   JIT: "2,039,559,714 iterations in 5 seconds 4 milliseconds. 407585874.101 per second"

so ~7.63x faster in just the micro benchmark

Compared to Processor activeProcess

[ Processor activeProcess ] bench.
"1,078,930,783 iterations in 5 seconds 3 milliseconds. 215656762.542 per second"
"1,099,617,392 iterations in 5 seconds 3 milliseconds. 219791603.438 per second"
"1,060,324,282 iterations in 5 seconds 1 millisecond. 212022451.910 per second"

[ thisProcess ] bench
"2,039,091,170 iterations in 5 seconds 1 millisecond. 407736686.663 per second"
"2,046,412,976 iterations in 5 seconds 1 millisecond. 409200755.049 per second"
"2,032,670,721 iterations in 5 seconds 3 milliseconds. 406290369.978 per second"
"1,992,535,072 iterations in 5 seconds 2 milliseconds. 398347675.330 per second"

Made with @JavierLarre

@guillep guillep marked this pull request as ready for review December 19, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants