Skip to content

Parfun real life examples#638

Open
gxuu wants to merge 2 commits intofinos:mainfrom
gxuu:mar-scaler-examples
Open

Parfun real life examples#638
gxuu wants to merge 2 commits intofinos:mainfrom
gxuu:mar-scaler-examples

Conversation

@gxuu
Copy link
Copy Markdown
Contributor

@gxuu gxuu commented Mar 25, 2026

READY FOR REVIEW.

Example code belongs to zimeng; I merely tuned the parameter a bit and removed the over-parallelism.

@gxuu gxuu force-pushed the mar-scaler-examples branch 5 times, most recently from f6f17ab to 0b3299c Compare March 26, 2026 00:48
@gxuu gxuu marked this pull request as ready for review March 26, 2026 00:48
"par_time = time.time() - start\n",
"\n",
"print(f\"Parallel runtime: {par_time / 60:.2f} minutes\")\n",
"print(f\"Speedup: {seq_time / par_time:.2f}x\")"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When running within the notebook, the speedup is consistently around 1.2x; while running locally on a 4 core machine gives a consistent speedup of 1.5x.

The aforementioned 4 core machine a.k.a my laptop has a past history of not able to correctly showcase the performance improvement with parfun.

@gxuu gxuu force-pushed the mar-scaler-examples branch 2 times, most recently from b26f833 to 1d0c8f1 Compare March 26, 2026 23:30
@gxuu gxuu changed the title Deep American Option Parfun example Parfun real life examples Mar 26, 2026
@gxuu gxuu force-pushed the mar-scaler-examples branch from 1d0c8f1 to 54291cf Compare March 27, 2026 01:21
@gxuu gxuu force-pushed the mar-scaler-examples branch 4 times, most recently from d523aaf to 3737b01 Compare March 27, 2026 15:47
Signed-off-by: gxu <georgexu420@163.com>
@gxuu gxuu force-pushed the mar-scaler-examples branch from 6b85a84 to 7163159 Compare March 27, 2026 19:11
Signed-off-by: gxu <georgexu420@163.com>
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.

1 participant