Comments (2)
JSON files are not cached, so I've changed the ua-parser source file to PHP file and tested the speed, and it seem that the performance boost is, indeed, very significant. Although I'm getting some weird results when comparing bulk parsing to one-per-script parsing...
from useragentinfo.
There, we go, I messed up the time measuring :) but when I fixed it the results are as follows:
0.5 ms per user agent in bulk mode, no matter what the source format is or if the opcache is of or on
1.3 ms per user agent in single-call mode when using json file and no opcache
1.1 ms per user agent in single-call mode when using json file with opcache
1.3 ms per user agent in single-call mode when using php file and no opcache
0.6 ms per user agent in single-call mode when using php file with opcache
from useragentinfo.
Related Issues (18)
- Fatal error: Class 'sfTimerManager' not found in \myUAITimerAdapter.class.php on line 19 HOT 4
- Cache constantly regenerates because of different browscap versions... HOT 2
- Add information about IE compatibility mode.
- Can composer be used? HOT 11
- Migrate browscap from php.ini solution to 100% PHP solution HOT 2
- Update tests for bulk / nonbulk / opcache tests. HOT 2
- Restore is_banned property for browscap source parser HOT 2
- Important user agent is not fully overriden. HOT 1
- Make bot matches less specific / more specific.
- Add rendering engine information.
- Add more cache wrapper classes. HOT 1
- Profile parsing and including speed with xhprof
- Add a website to check user agent using UserAgentInfo. HOT 2
- Browser and device icons
- How to update HOT 4
- Project being maintained? HOT 2
- get_browser comparison at README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from useragentinfo.