Created
February 19, 2021 18:51
-
-
Save genkuroki/33f6263fa0e409598e28e07f33edd157 to your computer and use it in GitHub Desktop.
v1.5.3 vs. v1.6.0-rc1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "@show VERSION\n\nusing Random\n\npimc_count(N, rng = Random.default_rng()) = \n 4count(_ -> rand(rng)^2 + rand(rng)^2 ≤ 1, 1:N)/N\n\n@time pimc_count(10^9)\n@time pimc_count(10^9)\n@time pimc_count(10^9)", | |
"execution_count": 1, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "VERSION = v\"1.5.3\"\n 11.632721 seconds (8 allocations: 19.547 KiB)\n 11.713196 seconds\n 11.388748 seconds\n", | |
"name": "stdout" | |
}, | |
{ | |
"output_type": "execute_result", | |
"execution_count": 1, | |
"data": { | |
"text/plain": "3.141533332" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "@show VERSION\n\nusing Random\n\npimc_count(N, rng = Random.default_rng()) = \n 4count(_ -> rand(rng)^2 + rand(rng)^2 ≤ 1, 1:N)/N\n\n@time pimc_count(10^9)\n@time pimc_count(10^9)\n@time pimc_count(10^9)", | |
"execution_count": 1, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "VERSION = v\"1.6.0-rc1\"\n 3.167641 seconds (12 allocations: 19.656 KiB)\n 3.190423 seconds\n 3.218217 seconds\n", | |
"name": "stdout" | |
}, | |
{ | |
"output_type": "execute_result", | |
"execution_count": 1, | |
"data": { | |
"text/plain": "3.141616996" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "", | |
"execution_count": null, | |
"outputs": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"name": "julia-1.6-depwarn-o3", | |
"display_name": "Julia 1.6.0-rc1 depwarn -O3", | |
"language": "julia" | |
}, | |
"toc": { | |
"nav_menu": {}, | |
"number_sections": true, | |
"sideBar": true, | |
"skip_h1_title": false, | |
"base_numbering": 1, | |
"title_cell": "Table of Contents", | |
"title_sidebar": "Contents", | |
"toc_cell": false, | |
"toc_position": {}, | |
"toc_section_display": true, | |
"toc_window_display": false | |
}, | |
"language_info": { | |
"file_extension": ".jl", | |
"name": "julia", | |
"mimetype": "application/julia", | |
"version": "1.6.0" | |
}, | |
"@webio": { | |
"lastKernelId": null, | |
"lastCommId": null | |
}, | |
"gist": { | |
"id": "33f6263fa0e409598e28e07f33edd157", | |
"data": { | |
"description": "v1.5.3 vs. v1.6.0-rc1", | |
"public": true | |
} | |
}, | |
"_draft": { | |
"nbviewer_url": "https://gist.github.com/33f6263fa0e409598e28e07f33edd157" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment