Skip to content

Commit

Permalink
test of execution time
Browse files Browse the repository at this point in the history
  • Loading branch information
cinthianlima committed Sep 10, 2021
1 parent f4d44d6 commit 6ef1f49
Showing 1 changed file with 66 additions and 39 deletions.
105 changes: 66 additions & 39 deletions notebooks/NC_CCL_Bocquet_Test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,6 @@
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"100 loops, best of 5: 46.8 ms per loop\n"
]
}
],
"source": [
"%timeit dist.prepare (cosmo)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"tf = Nc.TransferFunc.new_from_name (\"NcTransferFuncEH\")\n",
Expand All @@ -161,7 +144,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -245,14 +228,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -265,7 +241,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"metadata": {
"scrolled": true
},
Expand Down Expand Up @@ -295,7 +271,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -372,24 +348,75 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": []
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 68.32 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"10000000 loops, best of 5: 32.2 ns per loop\n"
]
}
],
"source": [
"%timeit ccl_mf"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": []
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 49.09 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"10000000 loops, best of 5: 27.4 ns per loop\n"
]
}
],
"source": [
"%timeit ccl_nm"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": []
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 41.29 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"10000000 loops, best of 5: 29.9 ns per loop\n"
]
}
],
"source": [
"%timeit nc_mf"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 49.45 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"10000000 loops, best of 5: 27.3 ns per loop\n"
]
}
],
"source": [
"%timeit nc_nm"
]
},
{
"cell_type": "code",
Expand All @@ -401,7 +428,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -415,7 +442,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 6ef1f49

Please sign in to comment.