From 19c254d9dd7432b667d9498c2b56ac9241ff5ec2 Mon Sep 17 00:00:00 2001 From: zeptodoctor <44736852+zeptodoctor@users.noreply.github.com> Date: Mon, 20 Nov 2023 03:20:06 +0000 Subject: [PATCH] build based on cfcec4b --- dev/index.html | 2 +- dev/man/examples/index.html | 2 +- dev/man/internal/index.html | 30 +++++++++++++++--------------- dev/man/log/index.html | 2 +- dev/search/index.html | 2 +- dev/search_index.js | 2 +- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dev/index.html b/dev/index.html index 70af6f6..07b8385 100644 --- a/dev/index.html +++ b/dev/index.html @@ -4,4 +4,4 @@ pkg> add Batsrus
Data loading speed of a 2.4GB 3D binary file, 317MB 3D binary file, and 65KB 2D binary file on Macbook Pro with quad core 2.2 GHz Intel i7 and 16 GB 1600 MHz DDR3:
2.4GB | tmax [s] | tmean [s] |
---|---|---|
Julia | 2.73 | 1.32 |
Python | 1.35 | 1.34 |
IDL | 6.18 | 6.08 |
MATLAB | 16.02 | 10.60 |
317MB | tmean [ms] |
---|---|
Julia | 180.8 |
Python | 179.5 |
IDL | 453.5 |
MATLAB | 698.4 |
65KB | tmean [μs] |
---|---|
Julia | 163.36 |
Python | 4390.95 |
IDL | 1970.29 |
MATLAB | 19273.25 |
The Julia, IDL, and MATLAB version all shares the same kernel design. The timings are obtained for Julia v1.3.1, Python 3.7.6 + Numpy 1.18.1, IDL 8.5, and MATLAB R2018b. For dynamic languages with JIT, the first time when function gets executed is also the slowest due to runtime compilation, as can be seen from tmax in the tables. spacepy reaches the same level of performance as Batsruls.jl because of the well-optimized numpy library written in C. However, for small data sizes Batsrus.jl is much faster than packages written in other languages.
In Python, you can easily take advantage of this package with the aid of PyJulia. After the installation, in the Python REPL:
from julia import Batsrus
dir = 'test'
file = '1d__raw_2_t25.60000_n00000258.out'
-data = Batsrus.load(file, dir=dir)
There you have it! Enjoy!
PyPlot
package backend may be affected by the settings of PyJulia
dependencies. If you want to set it back properly, you need to recompile the PyCall
package in Julia.
This package inherits the ideas and code structures from its predecessor in IDL (developed by Gábor Tóth) and MATLAB.
Batsrus.jl is developed and maintained by Hongyang Zhou.
Settings
This document was generated with Documenter.jl on Sunday 19 November 2023. Using Julia version 1.9.4.